In Linux, users sometimes encounter garbled characters after SecureCRT connects to the Linux server. So how do we solve this problem? In fact, the method is not difficult, let's take a look at it with Xiaobian.
Question: Chinese became garbled characters appear (the current system is encoded as UTF-8, CRT encoded as UTF-8)
principle: keep the file system, CRT three The encoding format is the same.
Solution:
Method 1:
a. View the encoding format of the file
You can view the file directly in Vim. Encoding
:set fileencoding
fileencoding=latin1
Viewing file encodings using commands
# file Mysql2.txt
Mysql2.txt : ISO-8859 text, with CRLF line terminators
ISO-8859 Also known as Latin or "Western European language"
b, check the format of the encoding used by the Linux system, the system will Edit to en_US (if you see the file edited as UTF-8 or GBK, etc., you can change it to UTF-8 or GBK, etc.)
# LANG=en_US
# echo $LANG
en_US
c. Modify and modify the settings of Secure CRT (if you see the file edited as UTF-8 or GBK, etc. Change to UTF-8 or GBK, etc.)
Right-click – select the properties of the session to view, modify to default Previous 12 Next page Total 2 pages
The Linux system itself is an open source system, so the Linux version is also being improved at any
We all know that the ls command is mainly used to display the contents of the curre
The CentOS system prompts an error when mounting Glusterfs, which causes Glusterfs to be unmounted.
The files we download on the network or copied in the U disk are the same as the source files, but s
Linux system xargs command usage
How to regularly clean up Nginx logs in Linux system
The most complete collection of Linux system shortcuts
How to solve the shell script stop execution when the Linux system is scheduled?
How to modify the character set in Linux
Linxu system uses SSH to report Access Denied. What should I do?
How to solve the problem that Linux does not limit the Limit value after opening SSH
Linux Mint Cinnamon uses vino-server to configure desktop sharing. Step
Ubuntu 12.04 how to install and use Byobu
Ubuntu how to use PPA to install Pragha player
Win7 uses IE browser to play Youku video prompt error code 2002/2003/500 solution
How can I solve the problem that Win8 system can't install anti-virus software?
DVD drive self-report: Why does Win7 refuse me thousands of miles away?
What should I do if the win7 mouse pauses? USB mouse pause solution
Windows 8 Pro Price 188 US dollars
Windows XP system free account can automatically log in
How to set up custom sorting for image files in Win7?