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

Source: Internet
Author: User
Tags locale

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

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. Take CentOS, for example, how to view languages and set language changes for Linux

1. View the 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. View the 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?

Can download and install Chinese language pack yum groupinstall chinese-support Online

When you are finished installing

Enter locale command

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 is zh_cn. UTF-8

2. Modify 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 reboot)

5. 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

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.