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