The first solution:
1. Click on the thread group - Add - postprocessor post-processing program --BeanShell
2. Click the processing procedures after BeanShell, write: prev.setDataEncoding ( "UTF-8");
Then click Run to see the return value
Obviously, the garbage problem solved! !
4. But it must be noted that: http content encoding default values request must be written: utf-8, otherwise they will be garbled
The second solution:
1, "BeanShell postprocessor" must be set in the http request it?
A: No, the post processor before the listener, so long as the scope, postprocessor put where are all the same effect;
as follows:
The request can not succeed, it will not be garbled!
A third solution:
1. Change the default encoding jmeter: jmeter default installation path in the bin directory, found
2. Click in, search "The encoding", find the code for sampler encoding settings;
to modify
4. Save and exit, and restart jmeter
Found not garbage! !