Fixed garbled display in SecureCRT

Source: Internet
Author: User

Recently, SecureCRT is often used to configure linux. Previously, it was directly configured in Linux runlevel 3 mode through the command line interface. It is inconvenient to find out after a long time, for example, you can copy and paste some configuration files or commands and cannot roll the screen forward. According to our introduction, we found that SecureCRT is quite good.

After a while, I noticed that some garbled characters often occurred. I didn't care too much at the time. Later, I accidentally found that this was not the case on the Chinese version of SecureCRT, the Garbled text on the original English version shows Chinese characters on the Chinese version, as shown in:

At first, I thought it was garbled because my English version does not support Chinese display. Later, I carefully considered the problem and found that the problem was not so simple. The key to the problem is why the default display of Chinese characters is displayed when I use SecureCRT to configure through the command line, after reading some documents, I found that this involves a file/etc/sysconfig/i18n. The "i18n" file name is short for internationalization, meaning there are 18 letters between I and n, the intention is to "internationalize" the software ".

This file has only one line of content.

,

The environment I used is (RHEL Server release 5.1, Kernel 2.6.18-53. e15), which indicates the language environment variable settings of your current system.

From the above we can clearly see that the system default language environment variable is zh_CN.UTF-8, the English version of SecureCRT according to this setting to display the relevant Chinese information will appear garbled. How can this problem be solved? Just change LANG = "zh_CN.UTF-8" to LANG = "en_US.UTF-8" or LANG = "zh_CN.GB18030.

Next, you 'd better select Session Options in the Options Option of SecureCRT and change the character encoding in Appearance

UTF-8.

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.