Problem Description: Tomcat published in the Linux environment contains the Chinese name of the page and file, browser access to the newspaper 404, Non-Chinese page no problem; I published the prototype for RP design, which contains a large number of Chinese files and paths
Resolution Step: First step, set Tomcat, configure Conf folder under Server.xml file, join? Uriencoding= "UTF-8" is as follows
<connector port= "protocol=" http/1.1 "connectiontimeout=" 20000 "redirectport=" 8443 "? uriencoding= "UTF-8" />
Test, if not yet accessible, proceed to the next step;
???? The second step: check the operating system language settings, in the terminal input? Locale, this will show the system's code, most of the situation is not shown below (normal as shown below),
? ? ?
?? Set the operating system language to UTF-8, in terminal input? Lang=en_us. UTF-8, then enter the locale to view the language settings, if they are already in effect, test again. If successful, it should be permanently set to UTF-8
?? How to set the file? Modify lang= "UTF-8" in/etc/sysconfig/i18n
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??----Sloan Just
Tomcat cannot access Chinese path or Chinese files under Linux