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 Python2#-*-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
:SetEncoding = UTF-8Termencoding = 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
:SetFileencoding = UTF-8
To sum up, if you edit a UTF-8 file, run the following command in VIM:
:SetEncoding = UTF-8Termencoding = GBK fileencoding = UTF-8
Note, this article from: http://hi.baidu.com/5ih2o/item/7696810c02239b3bf3eafcd8