Language Settings Common commands
# echo $LANG
# locale
# LANG=ZH_CN. UTF-8
# lang=en
?
CENTOS6 settings for Chinese language packs
The installation of CentOS selected Chinese, but the terminal can not display Chinese garbled;
# vim/etc/sysconfig/i18n
Lang= "ZH_CN. GB18030 "
Language= "Zh_CN.GB18030:zh_CN.GB2312:zh_CN"
Supported= "ZH_CN. Utf-8:zh_cn:zh:en_us. Utf-8:en_us:en "
Sysfont= "Lat0-sun16"
?
Centos7 settings for Chinese language packs
1) View current configuration
# cat/etc/locale.conf
Lang=en_us. UTF-8
2) Modify the Language pack configuration
# Cp/etc/locale.conf/etc/locale.conf_bak
# vim/etc/locale.conf
Lang= "ZH_CN. GB18030 "
Language= "Zh_CN.GB18030:zh_CN.GB2312:zh_CN"
Supported= "ZH_CN. Utf-8:zh_cn:zh:en_us. Utf-8:en_us:en "
Sysfont= "Lat0-sun16"
Note : After the modification is completed, re-login, still garbled, can be remote connection Terminal Xshell settings encoded as the default language or UTF-8, problem solving!
Linux garbled problem Solving