First check securecrt,
Set
Options-> Global Options-> General-> default session-> edit default settings-> terminal->
Appearance-> character encoding,
Select the UTF-8.
Then set
Options-> Global Options-> General-> default session-> edit default settings-> terminal->
Appearance-> font,
Select a font that does not contain garbled Chinese characters, such as fixedsys,, and.
Then exit securecrt and log on again.
Because the default Linux encoding is UTF-8, at this time, Chinese characters can be displayed normally.
If the code is still garbled, continue to check Linux settings
Open/etc/sysconfig/i18n
Change Lang to a character set that supports UTF-8
For example: lang = "zh_CN.UTF-8 ″
Or lang = "en_US.UTF-8 ″
Vim settings are in the vimrc file and under the/etc directory of the system. In addition ~ If a vimrc file exists in the directory, the system sets the file according to the file.
Edit. vimrc (_ vimrc), and add:
Let $ lang = "zh_CN.UTF-8"
Set fileencodings = UTF-8, Chinese, Latin-1
Set termencoding = UTF-8
Set encoding = UTF-8
Then OK.
If similar settings already exist in the configuration file, modify the settings as needed.
It can be correctly displayed, but the error message of Linux itself is garbled and cannot be correctly edited using vim.
This article from the Linux community website (www.linuxidc.com) original link: http://www.linuxidc.com/Linux/2011-04/34077.htm