JMeter Learning -039-jmeter 3.0 Generating Dashboard HTML report chart Chinese garbled

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.