Home > Article > Operation and Maintenance > Centos6.5 Chinese garbled solution
After installing CentOS, the Chinese text displays garbled characters. In Windows, the text uses GBK encoding by default, and in Linux, UTF-8 encoding is used by default. To solve this problem, you need to change the Linux encoding to GBK. Method As follows:
Recommended tutorial: centos usage tutorial
1. Check the supported character sets
#locale -a
2. Install the English version default The character set configuration is:
# cat /etc/sysconfig/i18n LANG="en_US.UTF-8" SYSFONT="latarcyrheb-sun16"
3. Change to Chinese character set:
# vi /etc/sysconfig/i18n LANG="zh_CN.GBK" SUPPORTED="zh_CN.UTF-8:zh_CN:zh" SYSFONT="latarcyrheb-sun16"
4. Execute the following command or restart to take effect.
# source /etc/sysconfig/i18n
Recommended related video tutorials: linux video tutorial
The above is the detailed content of Centos6.5 Chinese garbled solution. For more information, please follow other related articles on the PHP Chinese website!