Giter Site home page Giter Site logo

Comments (2)

WangJi92 avatar WangJi92 commented on August 19, 2024

中文输入的场景不是很多,这个也不是唯一的解决方案,只需要编解码即可
base64 估计更简单

  • 加密字符串 结果 5a2X5Liy5paH5a2X
final BASE64Encoder encoder = new BASE64Encoder();
final String text = "字串文字";
final byte[] textByte = text.getBytes(StandardCharsets.UTF_8);
final String encodedText = encoder.encode(textByte);
  • 解密字符串
String base64 = new String(new BASE64Decoder().decodeBuffer(encodedText), "UTF-8");

ognl

重点是这个base64 解析语法

new String(new sun.misc.BASE64Decoder().decodeBuffer("5a2X5Liy5paH5a2X"), "UTF-8")
vmtool -x 3 --action getInstances --className com.wangji92.arthas.plugin.demo.controller.CityRestController  --express 'instances[0].getCity(new String(new sun.misc.BASE64Decoder().decodeBuffer("5a2X5Liy5paH5a2X"), "UTF-8"))'  -c 30b46064

效果

image

from arthas-idea-plugin.

WangJi92 avatar WangJi92 commented on August 19, 2024

3.25 版本支持

  1. 编辑框直接输入中文

image

2、剪切板 自动转换为中文[只要是输入框里面的获取的命令都会自动转换中文为unicode编码]

vmtool -x 3 --action getInstances --className com.wangji92.arthas.plugin.demo.controller.CommonController  --express 'instances[0].traceE("\u4E2D\u6587")'  -c 60addb54

3、执行

image

  1. 其他的友好示范例子 可以在动态脚本编辑哦,或者本地文本vscode 编辑好了复制到文本框里面一样的效果

image

image

from arthas-idea-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.