jmeter笔记(3)--响应结果中文乱码的解决方式

1.举例

新建HTTP请求访问百度首页,响应结果如下:

2.原因

Jmeter安装目录/bin/jmeter.properties中sampleresult.default.encoding默认为ISO-8859-1

3.解决方式

1.打开安装路径\bin\jmeter.properties文件,搜索“default.encoding”关键字,找到如下配置:

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

2.将注释#删掉,并改成utf-8编码,如下:

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

3.重启JMeter即可


猜你喜欢

转载自www.cnblogs.com/mingfan/p/10714008.html