Tomcat Chinese path problem and solving

xiaoxiao2021-03-05  29

Want to access in Tomcat: http://www.web.com/ Chinese .jpg? specific methods:

1) Change server.xml uriencoding = "UTF-8"

2) After the GET method, the Chinese parameter will have a problem, and the specific reason is that UTF8 is 3 bytes, and GBK is 2 bytes.

3) It is recommended to speak Chinese parameters with javascript uriencode ()

Author: youngmean

转载请注明原文地址:https://www.9cbs.com/read-32045.html

New Post(0)