Troubleshoot Linux CentOS CRT Chinese garbled question mark

Source: Internet
Author: User
Tags i18n pack
  • How to view Linux system languages

    Echo $LANG
    Generally shown as en_US. UTF-8
    This is also the default language of the system

  • See if you have a Chinese language pack

    Locale
    If there is no ZH_CN. UTF-8 related content, stating that no language packs are installed,

  • The installation method is as follows (CentOS or Redhat series, Debian uses Apt-get installation, search for the next tutorial)

    Yum Groupinstall Chinese-support

  • With the Chinese language pack is not enough,

    Need to set vi/etc/sysconfig/i18n
    Press I to switch from insert mode to en_US. UTF-8 modified to ZH_CN. UTF-8,: Wq Save exit Vim Edit
    or write directly
    echo "lang=" ZH_CN. UTF-8 "" >>/etc/sysconfig/i18n
    echo "Lc_all=" ZH_CN. UTF-8 "" >>/etc/sysconfig/i18n

  • Reboot

    Restart Linux

  • CRT settings

    Options-Global Options-default session Settings-edit default settings-appearance-character encoding changed to UTF-8

  • Troubleshoot Linux CentOS CRT Chinese garbled question mark

    Related Article

    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.