jmeter-乱码问题如何解决

方法一

在“HTTP请求”中的”Content encoding”选项中输入 utf-8

方法二

打开bin文件夹下的jmeter.properties文件
jmeter.properties文件中修改ampleresult.default.encoding
默认显示如下:

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

修改后:

1
sampleresult.default.encoding=UTF-8

修改参数后需重启 Jmeter。

方法三

选中“线程组”,点击右键,添加——后置处理器——BeanShell PostProcessor
添加如下信息:

1
prev.setDataEncoding("utf-8")