Solve xshell4 Chinese garbled characters,

Source: Internet
Author: User

Solve xshell4 Chinese garbled characters,
Preface

 

After seeing someone else using xshell in the company, I have been using SecureCRT, so I have been wondering how to try xshell. So I used xshell last night, but I was so confused by Chinese characters for a long time that I wanted to give up.

Solve the garbled problem.

 

The xshell terminal uses the ls command to display garbled characters

 

 

 

After garbled characters appear, you can seek information online. Two solutions are mentioned in a large circle, but the xshell interface is still garbled.

  • Change the default encode used for xshell transmission to UTF-8
  • Modify the/etc/sysconfig/i18n file. The file content is as follows:

 

 

Searching for a large circle on the Internet took a long time and there was no clue. Therefore, a text file is created locally in notepad, which contains some Chinese characters, which are saved using UTF-8 and uploaded

On a linux server, check whether the code is garbled under xshell.

It's getting strange to see why the ls command is garbled. Because files are stored locally and win7 is used locally, the names of uploaded files should be gb2312 by default.

Do you need to use UTF-8 encoding during upload. After finding the following options on xftp and checking the options, everything becomes better.

 

 

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.