The centos system terminal displays garbled characters in Chinese

王林
Release: 2020-03-23 11:08:08
Original
2254 people have browsed it

The centos system terminal displays garbled characters in Chinese

Solution:

1. First open the /etc/sysconfig/i18n file

vi /etc/sysconfig/i18n
Copy after login

Add the following configuration:

LANG="zh_CN.UTF-8"
Copy after login

(Recommended tutorial: centos usage tutorial)

2. Then continue to open the /etc/profile file

vi /etc/profile
Copy after login

Add the following configuration:

export LANG="zh_CN.UTF-8"
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!