Jmeter in Bean shell script format changed to utf-8

 

Problems encountered:
when making a posting interface testing found that sending pure digital + letter post, you can normally request was successful. But when Chinese posted content, server-side coding garbled ??.

The reason:
When jmeter, the default format is GBK shell script, so I'm doing the encryption process is encrypted GBK format, while MD5 checksum server is encrypted UTF8 format, and then get the MD5 format is not the same , resulting in the check fails. (jmeter default GBK coding start, we need to change themselves as UTF-8)

Solution:
Modify the default format jmeter in shell scripts to UTF8.

 

Action:
find the change jmeter installation directory bin below jmeter.bat file, use Notepad to open.
In front of the set ARGS line add:
set FILEENCODING=-Dfile.encoding=UTF-8
and adding a reference variable at the end surface set ARGS:
%FILEENCODING%

 

 

Guess you like

Origin www.cnblogs.com/python-xiakaibi/p/11227136.html