jmeter运行返回的响应数据出现中文乱码时,怎么解决?

当响应数据或响应页面没有设置编码时,jmeter会按照安装目录下bin/jmeter.properties文件中,找到sampleresult.default.encoding设置的格式解析,默认ISO-8859-1,解析中文肯定出错

  1. # The encoding to be used if none is provided (default ISO-8859-1)  
  2. #sampleresult.default.encoding=ISO-8859-1  

 

解决方案:直接修改为: sampleresult.default.encoding=UTF-8。(记住去掉#),重新打开jmeter即可

Jmeter响应数据中文显示乱码,解决方法

相关文章: