Today, friends upgraded the version of JMeter from 2.13 to 3.0 before the interface script POST request body Chinese is not displayed correctly, as shown in the following:
Note that this is not garbled, but because the body Data is optimized in version 3.0, which causes the default font (CONSOLAS) to not support Chinese character display.
Solution: Modify the default display font in the configuration file {jmeter_home}\bin\jmeter.properties, to the system-supported Chinese font (you can go to the System Catalog Control Panel \ All Control Panel items \ Font view).
# The configuration entries for the default font settings are shown in bold #jsyntaxtextarea configuration#jsyntaxtextarea.wrapstyleword=true# jsyntaxtextarea.linewrap=true#jsyntaxtextarea.codefolding=true# Set 0 To disable undo feature in jsyntaxtextarea# jsyntaxtextarea.maxundos=50# change the font on the (jsyntax) Text areas. (Useful for HiDPI screens) #jsyntaxtextarea. Font.family=hack#jsyntaxtextarea. font.size=14
You can cancel the comment directly, or change the configuration item to the following, restart JMeter.
jsyntaxtextarea.font.family= Song Body
After modifying the configuration file restart JMeter, when you enter Chinese in Body Data, it is displayed correctly, as shown in:
At this point, This article successfully concluded, I hope this article can give beginners JMeter you a reference.
Finally, very grateful to the pro-stop, I hope this article can be pro helpful. Warmly welcome the kiss to discuss together and progress together. Thank you so much! ^_^
Save
Save
Save
JMeter Learning -031-jmeter 3.0 POST Body Data Chinese garbled problem