參考:https://blog.csdn.net/qq_15228737/article/details/82597482
https://baike.baidu.com/item/UTF-8/481798?fr=aladdin
https://baike.baidu.com/item/ISO-8859-1/7878872?fr=aladdin
1.jmeter運行過程中,“察看結果樹”中顯示已經請求成功,但是“斷言”卻響應失敗。
當察看結果樹的響應數據出現中文亂碼時,
在Jmeter安裝目錄下 bin/jmeter.properties中,一般用notepad打開。查找到sampleresult.default.encoding=ISO-8859-1,將ISO-8859-1更改為UTF-8,即sampleresult.default.encoding=UTF-8。
注:1、將語句前面的注釋符號 # 去掉;
2、修改配置后,需要重啟Jmeter才能生效。
2.UTF-8:UTF-8(8-bit Unicode Transformation Format)是一種針對Unicode的可變長度字符編碼,又稱萬國碼,由Ken Thompson於1992年創建。現在已經標准化為RFC 3629。UTF-8用1到6個字節編碼Unicode字符。用在網頁上可以統一頁面顯示中文簡體繁體及其它語言(如英文,日文,韓文)。