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.