Linux Chinese display garbled? How to set up CentOS display in Chinese

Source: Internet
Author: User

How to set the Linux system Chinese language, this is a lot of small partners in the beginning of the use of Linux, will encounter a problem, is the terminal input command echo when the Chinese display garbled. This situation typically occurs because the Chinese Language pack is not installed, or the default language that is set is causing the problem. Nithya this experience with CentOS as an example, how to operate Linux how to view the language, set the language of modification

Linux How to view settings System Language Pack
  1. View current system language

    After logging on to the Linux system, enter the echo $LANG to view the system language currently in use. Such as

  2. To view installed language packs

    See if there is a Chinese language pack to enter locale commands at the terminal, if En cn indicates that the Chinese language is already installed

  3. What if there is no Chinese language?

    You can download and install the Chinese Language pack Yum groupinstall chinese-support(not networked through other computers to download, upload it)

  4. How to modify the system language to Chinese

    1 Temporary language change

    If you are only temporarily changing the language environment of the Linux system, you can set the lang= language name by typing, such as Chinese

    Zn_cn. UTF-8 (Note that I am here originally in Chinese, I temporarily set to English

  5. Modifying the system default language

    The above method is to set the system default language configuration by modifying the

    such as vi/etc/sysconfig/i18n (pay attention to change the system after the restart)

  6. Other precautions

    If you follow the above methods to set the Chinese language or not, pay attention to the encoding of your link terminal selection.

    As an example of Xshell, the encoding of the terminal is selected in Chinese, or UTF8 can be

  7. After setting up, look at the previous garbled file again to see the display as Chinese

Linux Chinese display garbled? How to set up CentOS display in 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.