URIEncoding refers to the encoding format in the address bar in the browser.
Configuration code:
In the server.xml file, add it under the Connector tagURIEncoding="UTF-8"
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
Just restart the server.
Note: This encoding specifies decoding for URI, so it is only valid for get requests.
How to solve the garbled code problem in web projects, click to view