Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Jmeter transcodes the response result from Unicode to Chinese for display.

Shulou Source: shulou.com Published: 2022-06-03 05:21:29 11月24日 Update

Generally, the data returned by the interface on the line will be encrypted and displayed. If you want to display it in Chinese, you need to add BeanShell PostProcessor and add code, as shown in the following figure:

and insert the following code:

//Get response code Unicode encoded String s2=new String(prev.getResponseData(),"UTF-8");//--------------- char aChar; int len= s2.length(); StringBuffer outBuffer=new StringBuffer(len); for(int x =0; x

Tags: Code result Chinese process Test content pressure Interface data Fruit Tree step coding UTF-8 encryption impact Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Shulou Technology Huawei Apple Shulou Tech Info