Home >Operation and Maintenance >CentOS >What should I do if Chinese characters display garbled characters under centos?
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
source /etc/locale.confto reload the variables
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!