请求返回的响应数据出现乱码,有以下3种解决方法:
1.在http请求的配置中,Content encoding设置为UTF-8
2.打开jmeter--bin目录下的jmeter.properties文件,找到sampleresult.default.encoding,将其值设置为UTF-8
3.添加后置处理器-BeanShell Post Processor,在其脚本框上添加:
prev.setDataEncoding("utf-8")
请求返回的响应数据出现乱码,有以下3种解决方法:
1.在http请求的配置中,Content encoding设置为UTF-8
2.打开jmeter--bin目录下的jmeter.properties文件,找到sampleresult.default.encoding,将其值设置为UTF-8
3.添加后置处理器-BeanShell Post Processor,在其脚本框上添加:
prev.setDataEncoding("utf-8")