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:
export LC_ALL=zh_CN.GBK
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
LANG="en_US.UTF-8"
SYSFONT="latarcyrheb-sun16"
3. Modify the configuration to:
LANG="zh_CN.GBK"
SUPPORTED="zh_CN.UTF-8:zh_CN:zh"
SYSFONT="latarcyrheb-sun16"
4. Use the following command to make the configuration effective:
source /etc/sysconfig/il8n
5. Check the current encoding format:
Cloud Server ECS Linux modified encoding format