Home > Article > Operation and Maintenance > The centos system terminal displays garbled characters in Chinese
Solution:
1. First open the /etc/sysconfig/i18n file
vi /etc/sysconfig/i18n
Add the following configuration:
LANG="zh_CN.UTF-8"
(Recommended tutorial: centos usage tutorial)
2. Then continue to open the /etc/profile file
vi /etc/profile
Add the following configuration:
export LANG="zh_CN.UTF-8"
3. Finally, just restart the server.
You can see that the Chinese file name is displayed normally.
Related video tutorial recommendations: linux video tutorial
The above is the detailed content of The centos system terminal displays garbled characters in Chinese. For more information, please follow other related articles on the PHP Chinese website!