View system language If you want to view the default language used by the current system, enter
echo $LANG
If you want to set it to Chinese, it must be supported Chinese font library. locale view, as shown in the figure:
Install Chinese support
yum groupinstall chinese-support -y
After installing Chinese support, set the local default language Just set it to Chinese.
centos system edit vi /etc/sysconfig/il8n, after configuration, restart the system reboot
##If it is a centos7 system, there is no /etc/ sysconfig/il8n Edit /etc/locale.confAfter setting, entersource /etc/locale.conf
The above is the detailed content of What should I do if Chinese characters display garbled characters under centos?. For more information, please follow other related articles on the PHP Chinese website!