使用 CLI 从 TFS 将 UTF-8 字符传递给 jmeter

发布于 2025-01-19 11:01:44 字数 241 浏览 2 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

生生漫 2025-01-26 11:01:44

我的期望是您需要明确设置file.encoding java系统属性 utf-8 via -d命令行参数如下:

jmeter -Dfile.encoding=UTF-8 -Jregid=ТА96090838 .....

为了使更改永久添加添加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 to UTF-8 via -D command line argument like:

jmeter -Dfile.encoding=UTF-8 -Jregid=ТА96090838 .....

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:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文