Enable Apache to display Chinese characters in CentOS

Source: Internet
Author: User
Tags i18n
There is a language option in the settings, you can select to modify the language, or modify the configuration file to edit the/etc/sysconfig/i18n file. the modification content is as follows: LANG = & quot; zh_CN.GB18030 & quot; SUPPORTED = & quot; zh_CN.GB18030: zh_CN: zh: en_US.UTF-8: en_US: en & quot; SYSFONT = & quot; latarcyrheb-sun16 & q has a language option in the settings, you can modify the language or the configuration file.
Edit the/etc/sysconfig/i18n file. the modification content is as follows:
LANG = "zh_CN.GB18030"
SUPPORTED = "zh_CN.GB18030: zh_CN: zh: en_US.UTF-8: en_US: en"
SYSFONT = "latarcyrheb-sun16"
 
/Etc/sysconfig/i18n the region language settings of the system are stored here, and i18n is the abbreviation of internationalization, which is exactly 18 letters between I and n.
The first line indicates the language environment variable settings of your current system. here is zh_CN.GB18030
The second line indicates that the system has preset language support and the language not in the project cannot be properly displayed.

The third line defines the console terminal font, the font displayed when you log on to text is the latarcyrheb-sun16

 

Apache web page display Chinese

Comment out the AddDefaultCharest = UTF-8 statement in/etc/httpd/conf/httpd. conf

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.