jmeter问题-关于http请求返回数据中文乱码解决方

http请求除了中文地方乱码,其他都返回正确

http请求页面,配置了 content encoding 为UTF-8,但还是为乱码

后来在http信息头管理器里

配置了 content-Type :application/x-www-form-urlencoded;charset=utf-8

解决了这个问题

 

今天又遇到这问题了,get请求

解决方法,按上面的只找到 content encoding 为UTF-8,但还是为乱码

后来bin目录下,改了配置文件jmeter.properties 文件

找到#sampleresult.default.encoding=ISO-8859-1

将注释去掉,改成如下:

sampleresult.default.encoding=UTF-8

还有个原因,可能某个jar包 编码方式影响,比如说webdriver相关的jar包

原文地址:https://www.cnblogs.com/shishibuwan/p/11307194.html