Cloud Server ECS Linux modified encoding format

Source: Internet
Author: User

Https://help.aliyun.com/knowledge_detail/41424.html?spm=5176.7841174.2.19.Le8kvy

Typically, the default encoding format for ECS Linux is utf-8. Installing some software may require encoding support such as GBK. This paper takes the CentOs 6.5 system as an example, it is recommended to introduce the modified system encoding format to ZH_CN. Method of GBK.

Method One

1.vim/etc/profile.d/chinese.sh

2. Write the following:

    1. export LC_ALL=zh_CN.GBK
    2. export.GBK

3.wq Save exit and then use instruction source/etc/profile.d/chinese.sh to make the configuration effective:

Method Two

1. Edit the configuration file: vim/etc/sysconfig/il8n

2. The default configuration is

    1. LANG="en_US.UTF-8"
    2. SYSFONT="latarcyrheb-sun16"

3. Modify the configuration to:

    1. LANG="zh_CN.GBK"
    2. SUPPORTED="zh_CN.UTF-8:zh_CN:zh"
    3. SYSFONT="latarcyrheb-sun16"

4. Use the following command to make the configuration effective:

    1. source /etc/sysconfig/il8n

5. Check the current encoding format:

Cloud Server ECS Linux modified encoding format

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.