Several solutions to jmeter garbled code

01. Response garbled, post request Chinese garbled

When adding an HTTP request, fill in the corresponding encoding after Content encoding. Take the background encoding utf-8 as an example:

 

02

Add BeanShell Sampler or BeanShell PostProcessor

response garbled

 

03

Modify the configuration file of Jmeter: jmeter.properties

This method has been tested by me and only has an effect on the response result.

Find the jmeter.properties file in the bin directory of the jmeter installation directory.

Then search for encoding and find the following line of code:

.

Then remove the preceding #, and modify the following encoding to utf-8, as shown below :

 

 

04

The Chinese written in the Body data, the garbled characters are all question marks:

As shown in the figure:

Solution, check jmeter.properties:

Uncomment all comments, restart jmeter;

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324910229&siteId=291194637