jmeter—解决响应乱码问题

  • 问题:   

     当响应数据或响应页面没有设置编码时,jmeter会按照jmeter.properties文件中,sampleresult.default.encoding

设置的格式解析默认ISO-8859-1,这时候解析中文就会出错

  1. # The encoding to be used if none is provided (default ISO-8859-1)  
  2. #sampleresult.default.encoding=ISO-8859-1  
  • 解决方案:

     直接修改sampleresult.default.encoding=UTF-8。(需要去掉#,解除注释)

 

 

 

 

posted @ 2017-02-16 19:56  子信风蓝蓝  阅读(382)  评论(0)    收藏  举报