Solve Chinese garbled characters during SSH connection to Linux

Source: Internet
Author: User

I usually don't need Linux at all. It's definitely a newbie, but it needs to be used in the past two days. To prevent forgetting it later, I wrote down the problems I encountered.

When I used the Secure Shell client to connect to Linux, I encountered Chinese garbled characters (I installed the Simplified Chinese version in Linux ). The solution is to use the VI command to open/etc/sysconfig/i18n and modify its content:

  1. Lang ="Zh_cn.gb18030"
  2. Language ="Zh_cn.gb18030: zh_cn.gb2312: zh_cn"
  3. Supported ="Zh_cn.gb18030: zh_cn: Zh: en_US.UTF-8: en_us: En"
  4. Sysfont ="Lat0-sun16"

Note that you cannot directly modify the file after opening it with vi. You need to press the I Key of the keyboard to enter the modification mode. After the modification, Press ESC and enter the colon to enter the baseline mode. You can enter WQ in the baseline to save the file.

At this time, use SSH to relink and you will see that the garbled problem has been resolved.

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.