centos terminal Chinese display garbled characters

王林
Release: 2020-03-17 11:24:40
Original
2173 people have browsed it

centos terminal Chinese display garbled characters

1. Execute the following command:

vi /etc/sysconfig/i18n
Copy after login

Paste the following text

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

(Recommended tutorial: centos usage tutorial)

2. Continue to execute the command:

vi /etc/profile
Copy after login

Paste the following text

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

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!

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