jmeter关于中文乱码显示为问号的问题

网上搜索方式:

一、1.打开jmter配置文件bin/jmeter.properties
2.修改配置文件,查找“sampleresult.default.encoding”将其改为utf8,注意要去掉“#”号
sampleresult.default.encoding=utf-8 
二、1.添加一个"Bean shell PostProcessor"
2. 在“Script”中添加转为utf-8的代码

三、最终解决方案

1、添加请求头信息Accept,如图

Accept:application/json;charset=utf-8

猜你喜欢

转载自www.cnblogs.com/Wallace-2018/p/11005172.html