Problem one: Using SECURECRT telnet machine, using Vim Viewer program, is garbled
Workaround: In SECURECRT settings, set the character encoding to utf-8650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M01/57/0A/ Wkiol1sp5aibsn1laajygmkxptq684.jpg "title=" ix6ma5j) [s3d1ttbys~] _~r.png "alt=" Wkiol1sp5aibsn1laajygmkxptq684.jpg " />
Adding a row of set encoding=utf-8 in the ~/.VIMRC will display correctly.
The principle is that the encoding of vim is consistent with the encoding of the file
The settings for termencoding and SECURECRT are consistent.
Question two: Use screen, open utf-8 Chinese text garbled in screen
Workaround: Add the following settings to the ~/.SCREENRC:
#编码
Defutf8 on
Defencoding UTF8
Encoding UTF-8 UTF-8
New screen will display correctly.
Problem three: After the second problem is solved, with screen-r re-enter a screen, again garbled
Workaround: Add-u parameter when entering screen, screen-u-R xxx
can be displayed correctly.
This article is from the "Heaven Eye Prodigy's new Home" blog, please be sure to keep this source http://tianyanshentong.blog.51cto.com/3356396/1590730
SECURECRT + screen + Vim remote login utf-8 garbled problem solving