How to solve Vim Chinese garbled characters, copy and paste garbled characters when securecrt is connected to Linux (Ubuntu + RedHat test)

Source: Internet
Author: User

From: http://hi.baidu.com/%B7%E7_%D2%F7/blog/item/b32528fd6d77af0908244d4b.html

===== The simplest method ====

1. Create a new session and change session Options> terminal-> appearence-> fonts-> character encoding to UTF-8;

Note: do not modify the default font. It can be displayed. I don't know why. I can change the default font to the default font after the default font is changed. It is always impossible...

2. If the font cannot be changed, set the font to "";

=

The default settings of securecrt are not good for Chinese characters. It is easy to see Chinese garbled characters.

Copy and paste the text to other windowsProgramIt will also be garbled, or repeat from Windows

It is inconvenient to generate a securecrt with garbled characters.

When securecrt is connected to a Linux machine for program files and configuration editing, various garbled characters are frequently encountered:

1. Garbled text is displayed in Linux;

2. Even if no Garbled text is displayed, it will also be garbled when copying and pasting the text to other Windows programs,

3. if you copy files from windows to Linux, The securecrt will be garbled and inconvenient to open.

These problems are ultimately caused by inconsistent character encoding. You can try the following method to set them.

Files containing Chinese Characters in liunx cannot be normally displayed in Vim, which is related to the following settings:

1. Supported character sequence set preset by the system of the connected Linux machine, which is related to/etc/sysconfig/i18n;

2. It is related to the character encoding of the Terminal interface, that is, Bash, which is related to the Lang parameter.

3. character encoding of the file

4. The character delimiter set of the software securecrt connected to the Linux machine.

As long as the character delimiter set at is the same, you can correctly display and edit the file content containing Chinese Characters in Linux. Otherwise, it is a pile of garbled characters.

About securecrt character delimiter setSet:

1. First, choose option> session option.

2. Terminal> emulation: Select "Linux" and "ANSI color" from the terminal drop-down menu on the right.

3. Terminal> appearance,

3.1: Click the font button on the right. 1) Select, 2) Select "Chinese gb2312"

3.2 select "default" from the charactor drop-down menu to remove the check box before "use Unicode Line Drawing Character.

If garbled characters still occur after the above method is used, it may be a problem with securecrt font settings.

There will be no garbled characters: fixedsys,, and

The following error occurs: VT100, courier, and Courier New.

If this is the reason, replace the font with fixedsys.

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.