Problem: Garbled characters appear in the project. When foreground Ajax uses get request to transfer data, background receives the following
This problem seems to be not a normal garbled code, solution 1 is as follows
// Remarks: remarks =new String((String) request.getParameter()"remark")).trim().getBytes("ISO-8859-1"), "UTF-8");
Copy the code
The compiler runs as follows
Solution 2
Add: URIEncoding=” utF-8 “at the end