Some time ago I do not know why the CentOS system with Chinese garbled, looked at some online methods, summed up as follows:
1, check your system has not installed the Chinese Language pack, you can use the LOCALE-A command to list all the available locales:
See if there are the following four items:
If there is, do not install, if not, need to reinstall, use yum install Kde-l10n-chinese
2, modify the i18n and locale.conf configuration files
First, vim/etc/sysconfig/i18n, add the following two lines of code inside:
Lang= "ZH_CN. UTF-8 "
Lc_all= "ZH_CN. UTF-8 "
Then execute it to make the file that you just modified take effect: source/etc/sysconfig/i18n
Second, vim/etc/locale.conf
Add: lang= "ZH_CN. UTF-8 "
Also execute to make the file just modified to take effect source/etc/locale.conf
You can write when you are writing Chinese fonts and will not display garbled characters: