有时在使用jmeter的过程中,我们查看结果数的响应结果或者是写的打印脚本,打印出来的中文是乱码的时候,可以按如下处理:
修改文件:apache-jmeter-5.5\bin\jmeter.properties,将如下内容解除注释,改为UTF-8保存后重启jmeter,就不会出现乱码问题了
# Don't keep the embedded resources response data : just keep the size and the MD5
# default to false
#httpsampler.embedded_resources_use_md5=false
# List of extra HTTP methods that should be available in select box
#httpsampler.user_defined_methods=VERSION-CONTROL,REPORT,CHECKOUT,CHECKIN,UNCHECKOUT,MKWORKSPACE,UPDATE,LABEL,MERGE,BASELINE-CONTROL,MKACTIVITY
# The encoding to be used if none is provided (default ISO-8859-1)
sampleresult.default.encoding=UTF-8
# CookieManager behaviour - should cookies with null/empty values be deleted?
# Default is true. Use false to revert to original behaviour
#CookieManager.delete_null_cookies=true
网友评论