JMeter乱码常见的解决方案

上一篇 / 下一篇  2017-09-01 17:04:19 / 个人分类:JMeter

方法一、直接将JMeter中http请求中Content encoding改为utf-8
方法二、编辑JMeter安装目录:apache-jmeter-3.2\bin中的jmeter.properties文件
      将里面的#sampleresult.default.encoding=ISO-8859-1代码修改为:sampleresult.default.encoding=UTF-8,保存退出jmeter.properties文件
      最后重启JMeter工具
方法三、右键线程组—>添加—>后置处理器—>BeanShell PostProcessor

      在BeanShell PostProcessor界面Script.:中添加一行代码:prev.setDataEncoding("utf-8"),如下图:


TAG:

 

评分:0

我来说两句

我的栏目

日历

« 2024-04-25  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 2076
  • 日志数: 2
  • 建立时间: 2015-03-26
  • 更新时间: 2017-09-01

RSS订阅

Open Toolbar