jemeter的乱码问题

1.在HTTPrequest的content-encoding里写上utf-8

2.在jmeter的bin/jmeter.properties里

# The encoding to be used if none is provided (default ISO-8859-1)
#sampleresult.default.encoding=ISO-8859-1

把ISO-8859-1改成UTF-8,并放开

3.加一个后置处理器-beanshell PostProcessor,脚本里写上 prev.setDataEncoding("utf-8")

posted @ 2021-03-07 14:43  一叶小舟1  阅读(33)  评论(0编辑  收藏  举报