First, Introduction
In the Linux system often encountered the character set caused by the error, this article summarizes the set of methods to modify the system language environment steps. Second, the operation procedure executes the following instruction, view the system language that is currently used echo $LANG execute the following instructions to see the system installed Language Pack locale has ZH_CN indicates that the Chinese language is installed, if there is no Chinese language, you can execute the following instructions, install the Chinese Language pack yum Groupinstall Chinese-support temporarily change the language, you can set the lang= language name by typing the following lang= "ZN_CN. UTF-8 "Modify the system default language (notice that the system restarts after the change) specific steps:
First back up your/etc/sysconfig/i18n file:
#cp/etc/sysconfig/i18n/etc/sysconfig/i18n.bak
Then save the following piece of code into the i18n file and copy it to the/etc/sysconfig/directory, overwriting the original file (make sure you have done a backup cool):
Lang= "en_US. Utf-8″
Language= "Zh_CN.GB18030:zh_CN.GB2312:zh_CN"
Supported= "ZH_CN. GB18030:zh_CN:zh:en_US. Utf-8:en_us:en "
Sysfont= "Latarcyrheb-sun16″
Sysfontacm= "Utf8″
#添加的是以下几行:
Lang= "ZH_CN. Gb18030″
Language= "en_US. Utf-8″
Lc_ctype= "ZH_CN. Gb18030″
Lc_time= "en_US. Utf-8″
System default is English, now change the default language to Chinese
#LANG = "en_US. Utf-8″
#SUPPORTED = "en_US. Utf-8:en_us:en "
#SYSFONT = "Latarcyrheb-sun16″
The above is the English system settings
Here is the Chinese setting
Lang= "ZH_CN. Gb18030″
Language= "Zh_CN.GB18030:zh_CN.GB2312:zh_CN"
Supported= "Zh_CN.GB18030:zh_CN:zh"
Sysfont= "Lat0-sun16″
Sysfontacm= "8859-15″
And all you need to do is restart your machine.
Modifying the system default language