Linux under Ssh,telnet,secure CRT Chinese display garbled

Source: Internet
Author: User
Tags i18n ssh

Ssh,telnet Terminal Chinese display garbled solution

The code is as follows Copy Code

# vi/etc/sysconfig/i18n

The content:

The code is as follows Copy Code

Lang= "en_US. UTF-8 "
Supported= "ZH_CN. Utf-8:zh_cn:zh:en_us. Utf-8:en_us:en "
Sysfont= "Latarcyrheb-sun16"

To

The code is as follows Copy Code

Lang= "ZH_CN. GB18030 "
Language= "Zh_CN.GB18030:zh_CN.GB2312:zh_CN"
Supported= "ZH_CN. GB18030:zh_CN:zh:en_US. Utf-8:en_us:en "
Sysfont= "Lat0-sun16"

No need to reboot, it will take effect immediately.

In this way Chinese can normally be shown in the Ssh,telnet terminal. If you still can't, you can do this:

1, console terminal garbled

Add the following on the last line of the/etc/profile file:

The code is as follows Copy Code
Export Lc_all= "ZH_CN. GB18030 "

2, Xwindow terminal garbled

Add the following on the last line of the/etc/sysconfig/i18n file:

The code is as follows Copy Code
Export Lc_all= "ZH_CN. GB18030 "


3.Secure CRT Display garbled

1, configure VIM, set:
Syntax on

2. Set up secure CRT:

The code is as follows Copy Code

Options->session Options-> Terminal-> emulation select ANSI or Linux or Terminal, you must hook ANSI Xterm

Note: I am using the securecrt, want to make this configuration immediately effective, to disconnect the server, and then use VIM to open the editing text, you can see the effect.

Principle: If the Linux front landing, the need for the effect of all normal, only through the SECURECRT landing, did not achieve the desired effect, then the problem can only be on the SECURECRT.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.