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.