Solve the secure CRT garbled Problem
In Chinese Windows, 2.6 kenerl Linux, such as securecrt ssh fc and Ubuntu, is often garbled during compilation and man. This problem has plagued me for a long time.
Last night, we found that the default SSH encoding of 2.6 kernel is UTF 8, and the securecrt encoding is also changed to UTF 8. Well, the problem is solved.
Modification method:
Options-> session options-> apperance-> fonts-> character. Write it down and find that the configuration of securecrt is really difficult.
++
For a long time, my securecrt settings are still pretty nice, with proper font size and color.
It is quite easy to use, that is, there is a fatal problem:
Text copy is always garbled.
For example, if the voice is as drunk as lan's five characters, copy it and paste it on the notepad, and it becomes "é ù ×íçá à ".
It is also garbled to copy data from securecrt to securecrt.
This problem does not occur to colleagues, so they can use it well.
It may be that our settings are not the same.
The differences are as follows:
1, emulation
Terminal selects Linux and "ANSI color"
2, appearance
Font selects VT100 12pt
"Use Unicode line drawing characters" is not selected"
The default selected in character does not know whether it is related to this.
In addition, in Linux, The Lang environment variable is set to zh_cn.gb2312, which is: en_us
So I thought about these factors and changed them.
It was a good luck. At last, I found a correct setting when prompted by others.
After careful analysis, we found that the problem lies in the font.
I used to use VT100 12pt, and securecrt installs the font set by default.
I tried several common fonts and found someProgramGarbled characters, some will not appear.
There will be no garbled characters:Fixedsys,,
The following error occurs: VT100, courier, and Courier New.
The cause of garbled characters is not found, and the guess is the encoding problem.
If you have garbled characters, we recommend that you change the font. Fixedsys.
There is a boring situation, that is, it may still be garbled during the replacement, but it must be changed several times,
It will be normal. It is absolutely confusing.
Conclusion:
The biggest nonsense is: I have not found the specific reason.
However, fonts are most likely to be used. Because there will be no garbled characters in the fixedsys font, and VT100 may be used.
Whether the characer encoding settings are related is unclear for the time being. Set it to default.
It should have nothing to do with the server environment variables.
For example: Lang for zh_cn.gb2312 or en_US.UTF-8, can be.
It should have nothing to do with the vim encoding settings.
It does not matter with the terminal settings. If you select Linux or VT100 or xterm, no garbled characters will appear.
----------------------------
Now let's talk about securecrt settings.
Font:
It is recommended to use fixedsys. Although this font is not the most beautiful, it is also a good choice on the terminal, and everyone can accept it.
It is mainly because it is fixed in size and displayed in all places, and the effect is the same.
As we all know, if a tab is set to four spaces and eight tabs are set, a program that is originally beautiful will not be beautiful on others' computers.
Similarly, this problem also occurs if the font size is set to different.
Therefore, we generally recommend that you set the font to a uniform fixedsys.
Linux terminals are colored.
Vim can also enable color.
Why do many people do not like to open the color of the two.
Securecrt settings:
Terminal-> emulation-> ANSI color can be selected.