Chinese character display garbled problem in CentOS system

Source: Internet
Author: User
Tags i18n centos

vi/etc/sysconfig/i18n

Lang= "en_US. UTF-8 "
Supported= "en_US. Utf-8:en_us:en "
Sysfont= "Latarcyrheb-sun16"

source/etc/sysconfig/i18n

And


Export LC_ALL=ZH_CN. UTF-8
Export LANG=ZH_CN. UTF-8


Screen exit back in

Terminal, gedit display garbled


# vim/etc/sysconfig/i18n

Will:
Lang= "en_US. UTF-8 "
Sysfont= "Latarcyrheb-sun16"

Modify the original content as follows:

Lang= "ZH_CN. GB18030 "
Language= "Zh_CN.GB18030:zh_CN.GB2312:zh_CN"
Supported= "ZH_CN. Utf-8:zh_cn:zh:en_us. Utf-8:en_us:en "
Sysfont= "Lat0-sun16"

Install Chinese fonts with Yum

# yum Install Fonts-chinese.noarch
System-> Logout Logoff
When you re logged on to the CentOS system, you will find that all interfaces have changed from English to Chinese

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.