Remember to keep it in mind. The following method does not need to change the securecrt configuration, so it does not affect the display of other Chinese characters.
Problem:
For example, if a file is UTF-8 encoded, the file header is:
1 #! /Usr/bin/ENV Python
2 #-*-coding: UTF-8 -*-
At this point:
Run securecrt to Linux and run Vim. The Chinese characters are garbled.
View securecrt-> session options
Terminal-> appearance: character encoding: Default
Solution:
You only need to run a line of command below Vim in Linux
: Set encoding = UTF-8 termencoding = GBK
No problem with displaying Chinese characters.
However, if you change the file, there will be a problem when saving it. The prompt is "Conversion error"
Add another line
: Sets fileencoding = UTF-8
To sum up, if you edit a UTF-8 file, run the following command in VIM:
: Set encoding = UTF-8 termencoding = GBK fileencoding = UTF-8