# Vi/etc/sysconfig/i18n
Lang = "en_US.UTF-8"
Sysfont = "latarcyrheb-sun16"
The default language is English. If you change the first line"Lang = zh_CN.UTF-8"", Then the shell on the local machine can see the normal Chinese, but connected through SSH will find all Chinese characters become garbled; then changed"Lang = "zh_cn.gb18030"", Re-login to find everything OK.
Linux: what is the role of the/etc/sysconfig/i18n file?
What does each line in/etc/sysconfig/i18n under Red Hat mean?
Lang = "zh_cn.gb18030"
Supported = "zh_cn.gb18030: zh_cn: Zh: en_US.UTF-8: en_us: en"
Sysfont = "latarcyrheb-sun16"
++ +
/Etc/sysconfig/i18nThe region language settings of the system are stored here,I18nIs internationalizedInternationalizationThe first line of the 18-letter abbreviation between I and N indicates the language environment variable settings of your current system. Here isZh_cn.gb18030 the second line indicates that the system has preset language support. If the language is not in the project, the third line defines the console terminal font. This is the font displayed when you log on to the text.Latarcyrheb-sun16
Centos Startup Mode and language settings
1. Set the text Startup Mode
The graphic interface requires a large amount of memory and CPU resources. For servers, high efficiency is the most important. Therefore, centos is started by default and changed to the text mode. Edit/Etc/inittabFile, find the statement"ID: initdefault: ".5Change3, After the restart, centos will automatically enter the character interface.
2. Set language Parameters
The default centos language encoding is"Zh_CN.UTF-8", The" terminal "window operation in the X-window desktop environment can correctly display Chinese characters, but if it is remotely managed through SSH or telnet, all Chinese characters are garbled.
1>. To solve this problem, edit the file/Etc/sysconfig/i18nIn the following example,Lang = "zh_CN.UTF-8"" To"Lang = "zh_cn.gb18030".
2>. Log On again and check that all Chinese characters are properly displayed. Change to English:
Lang = "en_US.UTF-8"
Sysfont = "latarcyrheb-sun16 ""
# Vi/etc/sysconfig/i18n
Lang = "en_US.UTF-8"
Sysfont = "latarcyrheb-sun16"
The default language is English. If you change the first line"Lang = zh_CN.UTF-8"", Then the shell on the local machine can see the normal Chinese, but connected through SSH will find all Chinese characters become garbled; then changed"Lang = "zh_cn.gb18030"", Re-login to find everything OK.