Remote linux Chinese garbled solution

  
                  When using xshell to log in Chinese version of CentOS or redhat, if the output is Chinese in xshell, it may display garbled characters. The following methods can effectively solve the garbled problem. The linux Chinese garbled solution is as follows: [root@localhost ~]# cd /etc /sysconfig/[root@localhost sysconfig]# cp i18n i18n.bak #backup i18n file[root@localhost sysconfig]# echo "" >i18n[root@localhost sysconfig]# vi i18n #Add the following content LANG=" ;zh_CN.GB18030"LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"SUPPORTED="zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en"SYSFONT="lat0-sun16"

But after this modification, the Chinese characters displayed on the Linux physical machine when using the terminal command line are garbled. If you are not logged in locally, you can use this method

linux Chinese garbled solution 2:

By modifying the encoding of the remote tool to display Chinese normally, the encoding format of the remote tool can be displayed as utf8 format to solve the problem of garbled Chinese linux! Some tools may not have the function of modifying the code. It is recommended that you use xhell, which is powerful!

Copyright © Windows knowledge All Rights Reserved