Home > Operation and Maintenance > Linux Operation and Maintenance > What to do if linux Red Hat Chinese garbled characters

What to do if linux Red Hat Chinese garbled characters

藏色散人
Release: 2021-11-25 15:09:25
Original
4053 people have browsed it

Solution to Chinese garbled characters in Linux Red Hat: 1. Log in to the Linux system with the root account; 2. Find the i18n file in sysconfig; 3. Change "LANG=zh_CN.UTF-8" to "LANG= "zh_CN.GB18030"; 4. Restart the system.

What to do if linux Red Hat Chinese garbled characters

The operating environment of this article: redhat6.5 system, SSH Secure version 3.2 software, Dell G3.

linux What should I do if the Chinese characters in Red Hat are garbled?

About the problem that the Linux system (RedHat) terminal displays Chinese garbled characters

The Linux system terminal displays Chinese garbled characters, and SSH Secure Shell Client remotely connects to Chinese garbled characters

Solution:

Log in to the Linux system with the root account, or use su root to switch to the root account command under other users.

Find the i18n file in /etc/sysconfig/

What to do if linux Red Hat Chinese garbled characters

Open the i18n file with a text editor

What to do if linux Red Hat Chinese garbled characters

Change LANG="zh_CN.UTF-8" to LANG="zh_CN.GB18030"

What to do if linux Red Hat Chinese garbled characters

Steps 3 and 4 can also use vi /etc/sysconfig/ i18n command to directly edit

What to do if linux Red Hat Chinese garbled characters

#Save the i18n file and restart the system.

After the system is up, test: the Chinese display on the terminal is normal. Use SSH Secure Shell Client to connect remotely, and the Chinese display is also normal.

Note: Operate under root user

Recommended learning: "linux video tutorial"

The above is the detailed content of What to do if linux Red Hat Chinese 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