The get method is passed to the background Chinese garbled solution

When using mvc to receive the parameters passed by the get method, Chinese garbled characters appear, as follows


Solution:

path = new String(path.getBytes("ISO-8859-1"),"UTF-8");

The parameters are decoded through ISO-8859-1, decoded into the original secondary system, and UTF-8 encoding is performed to solve the Chinese garbled characters. The debug found that there is no Chinese garbled characters.



Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326698117&siteId=291194637