1. Execute the following command:
vi /etc/sysconfig/i18n
Paste the following text
LANG="zh_CN.UTF-8"
(Recommended tutorial: centos usage tutorial)
2. Continue to execute the command:
vi /etc/profile
Paste the following text
export LANG="zh_CN.UTF-8"
3. Finally, restart the server.
Related video tutorial sharing: linux video tutorial
The above is the detailed content of centos terminal Chinese display garbled characters. For more information, please follow other related articles on the PHP Chinese website!