Recently, people often asked JMeter 3.0 when using the generated HTML report chart in the Chinese garbled problem. Here, a brief talk about the solution of the method.
Information about the encoding is as follows:
1, check the control CSV, XML and other configuration results file generation, read the file encoding format is correct.
Configuration file path: ${jmeter_home}/bin/saveservice.properties, the corresponding information is as follows:
2, view ${jmeter_home}/lib/ext/apachejmeter_core.jar's Org.apache.jmeter.report.core.CsvSampleReader.class file, The default encoding for reading the CSV file is "iso8859-1", and the default encoding in the constructor is "Iso8859-1", so when the HTML report chart is generated, the file encoding does not match, and the dashboard HTML page is usually garbled.
Modification Method:
1, saveservice.properties character encoding set to UTF-8
2. Modify the default encoding in Org.apache.jmeter.report.core.CsvSampleReader.class in Apachejmeter_core.jar to UTF-8, and then repackage to replace the original jar file.
3, add the file encoding configuration item in Jmeter.properties, through Jmeterutils.getpropertie ({coded configuration item}), the other operation steps are the same as 2. Interested in the pro can try.
PS: Don't worry about the pro, can wait for the next JMeter version, the official fixed, the default code is UTF-8.
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! ^_^
JMeter Learning -039-jmeter 3.0 Generating Dashboard HTML report chart Chinese garbled