JMeter乱码常见的解决方案
方法一、直接将JMeter中http请求中Content encoding改为utf-8
方法二、编辑JMeter安装目录:apache-jmeter-3.2\bin中的jmeter.properties文件
将里面的#sampleresult.default.encoding=ISO-8859-1代码修改为:sampleresult.default.encoding=UTF-8,保存退出jmeter.properties文件
最后重启JMeter工具
方法三、右键线程组—>添加—>后置处理器—>BeanShell PostProcessor
在BeanShell PostProcessor界面Script:中添加一行代码:prev.setDataEncoding("utf-8"),如下图: