当前位置:网站首页>[jmeter] solution to Chinese garbled response content
[jmeter] solution to Chinese garbled response content
2022-07-23 05:58:00 【Luoyang pig】
Chinese garbled response content solution
Jmeter The result tree returns Response Body The Chinese display of is “???”, The display in the browser is normal 
On the left is Jmeter, On the right is the browser request
It looks like a coding problem , Baidu has modified the code in several ways
Method 1 、 stay http request content encoding Input in utf-8
No need to reboot jmter
Method 2 、 Modify the configuration file jmeter.properties Of sampleresult.default.encoding
1、 stay jmeter Installation path for apache-jmeter-x.x\bin Next ;
2、 open jmeter.properties The file of ;
3、sampleresult.default.encoding=UTF-8, Remove the annotator #;
4、 Save the file , restart jmeter
Method 3 、 Modify the configuration file :jmeter.properties Of jsyntaxtextarea.font.family
1、 stay jmeter Installation path for apache-jmeter-x.x\bin Next ;
2、 open jmeter.properties The file of ;
3、jsyntaxtextarea.font.family=Hack, Remove the annotator #;
4、 Save the file , restart jmeter
Method four 、 add to beanShell PostProcessor
Input script :prev.setDataEncoding(“UTF-8”);
No need to reboot jmeter
Method five 、 Refer to the csv The file code is UTF-8 Format
No UTF-8 Save again as UTF-8 Coding format , Reintroduce to Jmeter
Methods six 、 stay jmeter modify csv File reading format
stay jmeter modify csv The read format of the file is “UTF-8”, No need to reboot jmeter

Methods seven 、 Check whether the request input parameter has been garbled
1、 If it is garbled in the request , Here's the picture 
resolvent :
Use the method mentioned above Content encoding, Normal
remarks : Simultaneous configuration jmeter On csv Of “File encoding” And requested Content encoding by “UTF-8”, Request interface body The Chinese display of is garbled , At this time , As long as csv Of “File encoding” Of “UTF-8” It is amended as follows “Edit”
I checked , My request has only two fields ,get Method , All parameters are strings , There is no Chinese
That's not the reason 

Methods eight 、 Switch the display mode of the result tree

Try to display the result tree “Text” Change it to “Json”, It's still the same ..
After trying the above methods , Did not solve my Response Body Problems displayed as garbled code .
I don't have any ideas at the moment , The follow-up problems are solved and supplemented ..
边栏推荐
猜你喜欢

学习Amber T3.3:隐式溶剂模型(GB)的MD

About the problem of re creation after deleting the module in idea:

学习amber教程A17:伞形采样,绘制丙氨酸三肽的势能面

Software life cycle -- W model

使用pip使用报错:pip is configured with locations that require TLS/SSL

Day04 --- use of Zen

在局域网内配置LoRaWAN的私有ChirpStack

STM32学习—DHT11温湿度传感器采样驱动并用cjson格式上报

Solutions to xftp upload errors

Test case: phone number
随机推荐
十月随笔
指针学习日记(二)
学习amber软件md的输入文件参数
JMeter regular expression extractor
正则表达式Ⅰ
Dom4j parses XML files and processes data information from XML
Software life cycle model ----- V model
指针学习日记(一)
读刘润《底层逻辑》摘录
【调研信息搜集的内容,信息搜集的方法,信息搜集的工具,信息搜集结果的利用等调研报告】
Test point, summary of the first day
存储过程
Software bug
Selenium基础知识 多窗口处理
判断Set中课程是否存在,Contains方法
关于如何在终端设置有颜色的字体
KMP
Day 3 summary & homework
Solutions to xftp upload errors
Test case: phone number