JMeter接口响应数据出现乱码的三种解决方法
第一种方法:
Content encoding设置为utf-8,若仍为乱码,请用方法2

图1
第二种方法:
修改bin文件夹下的jmeter.properties文件
搜索ISO,把“#sampleresult.default.encoding=ISO-8859-1”修改为“sampleresult.default.encoding=UTF-8”,保存文件,重启jmeter即可
注:若此法还是无效,请用方法3

图2
第三种方法:
给线程组添加‘后置处理器-Bean Shell PostProcessor’,在Bean Shell PostProcessor中添加脚本:prev.setDataEncoding("utf-8")即可。

图3

图4

浙公网安备 33010602011771号