How to view Linux system languages
Echo $LANG
Generally shown as en_US. UTF-8
This is also the default language of the system
See if you have a Chinese language pack
Locale
If there is no ZH_CN. UTF-8 related content, stating that no language packs are installed,
The installation method is as follows (CentOS or Redhat series, Debian uses Apt-get installation, search for the next tutorial)
Yum Groupinstall Chinese-support
With the Chinese language pack is not enough,
Need to set vi/etc/sysconfig/i18n
Press I to switch from insert mode to en_US. UTF-8 modified to ZH_CN. UTF-8,: Wq Save exit Vim Edit
or write directly
echo "lang=" ZH_CN. UTF-8 "" >>/etc/sysconfig/i18n
echo "Lc_all=" ZH_CN. UTF-8 "" >>/etc/sysconfig/i18n
Reboot
Restart Linux
CRT settings
Options-Global Options-default session Settings-edit default settings-appearance-character encoding changed to UTF-8
Troubleshoot Linux CentOS CRT Chinese garbled question mark