jmeter无效的UTF-8中间字节 [英] jmeter Invalid UTF-8 middle byte
本文介绍了jmeter无效的UTF-8中间字节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用jMeter通过对我的测试服务器的发布请求来拍摄json.
I'm using jMeter to shoot json through post requests to my test server.
以下请求始终失败:
{
"location": {
"latitude": "37.390737",
"longitude": "-121.973864"
},
"category": "Café & Bakeries"
}
响应数据中的错误消息为:
the error message in the response data is:
Invalid UTF-8 middle byte 0x20
at [Source: org.apache.catalina.connector.CoyoteInputStream@6073ddf0; line: 6, column: 20]
该请求根本没有发送到服务器. 其他请求(例如,用其他有效的类别(例如"Delis")替换类别中的值)即可.
The request is not sent to the server at all. other requests (e.g. replacing the value in category with other valid category like "Delis") works perfectly.
我想这是与咖啡厅"相关的编码问题但我不知道如何解决. 任何的想法? 谢谢!
I guess it's an encoding issue related to "Café" but I don't know how to resolve it. any idea? Thanks!
推荐答案
可以设置内容编码".我在那里设置了"utf-8",它解决了问题
in the HTTP request itself, it is possible to set "content encoding". I set there "utf-8" and it solved the problem
这篇关于jmeter无效的UTF-8中间字节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文