jmeter返回值中的中文显示为????问号处理解决方案

jmeter返回值中的中文显示为????问号

 查找解决方案时,发现了以下两种解决方案:
一、1.打开jmter配置文件bin/jmeter.properties
2.修改配置文件,查找“sampleresult.default.encoding”将其改为utf8,注意要去掉“#”号
sampleresult.default.encoding=utf-8 
二、1.添加一个"Bean shell PostProcessor"
2. 在“Script”中添加转为utf-8的代码

1.新建一个BeanShell 后置处理器
2.脚本:prev.setDataEncoding("utf-8")
3.执行请求,查看结果树中为中文,非乱码,处理成功

 但是以上方法对我来说看人品,玄学问题,其实在http请求上或者http请求默认值上的内容编码中输入utf-8就好了。。。

 


—The End—
后续有好方法还会继续更新,欢迎大家一起交流互助。
如果对你有帮助请关注哦!
 

猜你喜欢

转载自blog.csdn.net/github_35856054/article/details/132279545
今日推荐