反馈已提交

网络繁忙

You are viewing 5.1 help doc. More details are displayed in the latest help doc.

Linux System Installation Chinese Language Pack

  • Recent Updates: August 25, 2022
  • I. Overview

    1. Problem description

    When using the Linux system, we sometimes encounter Chinese garbled code. As shown in the following figure:

    222

    2. Solution

    This situation is generally caused by the failure to install the Chinese language pack or the problem with the default language set. Please refer to the methods in this article for troubleshooting and solutions.

    II. Operation steps

    This paper takes CentOS7 system as an example.

    1. View the current system locale

    locale

    1614671388860705 (1) (1).png

    2. Check whether there is a Chinese language pack

    Check whether there is a Chinese language pack.

    locale -a | grep zh_CN

    1614671149801034.png

    zh_CN.utf8is simplified Chinese. If there is no zh_ Cn.utf8, install the language pack. If it exists, you can set it directly.

    3. Install Chinese language pack

    If you refer to Section 2.2, the current system has zh_CN.utf8, ignore this section.

    yum install kde-l10n-Chinese

    4. Temporarily modify the system default language

    Temporary modification. After restarting the server, it will be restored to the previous settings.

    Revised to Chinese as follows:

    LANG="zh_CN.UTF-8"

    10.png

    Use locale to view the current system language, which has been successfully modified.

    5. Permanently modify the system default language

    1) Method 1

    vi /etc/locale.conf
    LANG=zh_CN.UTF8

    As shown in the following figure:

    11.png

    After saving, use reboot to restart the system.

    2) Method 2

    localectl set-locale LANG=zh_CN.UTF8

    12.png

    Restart the system using reboot.

    Attachment List


    Theme: Deployment Integration
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    售前咨询电话

    400-811-8890转1

    在线技术支持

    在线QQ:800049425

    热线电话:400-811-8890转2

    总裁办24H投诉

    热线电话:173-1278-1526

    文 档反 馈

    鼠标选中内容,快速反馈问题

    鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。

    不再提示

    10s后关闭