Tomcat cannot access Chinese path or Chinese files under Linux

Source: Internet
Author: User
Tags locale

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.