網上搜索方式:
一、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