SECURECRT + screen + Vim remote login utf-8 garbled problem solving

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.