Home  >  Article  >  Operation and Maintenance  >  The centos system terminal displays garbled characters in Chinese

The centos system terminal displays garbled characters in Chinese

王林
王林Original
2020-03-23 11:08:082261browse

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.

The centos system terminal displays garbled characters in Chinese

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn