Remote Linux Chinese garbled solution

Source: Internet
Author: User
Tags i18n

Use Xshell login Chinese version centos or Redhat, under Xshell if the output is Chinese words may be displayed garbled, through the following methods can effectively solve the garbled problem

Linux Chinese garbled solution method is as follows:

[Root@localhost ~]# cd/etc/sysconfig/

[Root@localhost sysconfig]# cp i18n I18n.bak #备份i18n文件

[Root@localhost sysconfig]# echo "" >i18n

[Root@localhost sysconfig]# VI i18n #加入以下内容

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"

However, after this modification, the Linux physical machine using terminal command line to display the Chinese characters is garbled, if not logged in locally, you can use this method

Linux Chinese garbled solution two:

By modifying the remote tool encoding to normal display Chinese, the remote tool in the encoding format to display the UTF8 format can solve the problem of Linux Chinese garbled! Some tools may not modify the function of the encoding, we recommend that you use Xhell, powerful!

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.