使用 CLI 从 TFS 将 UTF-8 字符传递给 jmeter
CLI模式正确地发送了“ -jregid = c c = 96090838”此UTF-8字符,但在JMeter请求中,它变成了“••‽96090838”。
我的内容编码设置为UTF-8,在线程之前,我使用prev.setDataEncoding(“ utf-8”)
在JSR223中,也使用了chcp 65001
此代码页面并检查了在Windows设置中设置的非unicode程序的语言。
CLI mode is sending "-Jregid=ТА96090838" this UTF-8 character correctly but in JMeter request it turns into "Ã�¢Ã��96090838" this.
My content encoding is set as UTF-8, before thread I used prev.setDataEncoding("UTF-8")
in JSR223, also used chcp 65001
this code page and checked Language for non-Unicode programs setting in windows setting.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的期望是您需要明确设置
file.encoding
java系统属性utf-8
via -d命令行参数如下:为了使更改永久添加添加
file.encoding.encoding = utf-8
system.properties file(属于jmeter安装的“ bin”文件夹)的行:
My expectation is that you need to explicitly set the
file.encoding
Java System Property toUTF-8
via -D command line argument like:in order to make change permanent add
file.encoding=UTF-8
line to system.properties file (lives in "bin" folder of your JMeter installation)More information: