反馈已提交
网络繁忙
When using the Linux system, we sometimes encounter Chinese garbled code. As shown in the following figure:
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.
This paper takes CentOS7 system as an example.
locale
Check whether there is a Chinese language pack.
locale -a | grep zh_CN
zh_CN.utf8is simplified Chinese. If there is no zh_ Cn.utf8, install the language pack. If it exists, you can set it directly.
If you refer to Section 2.2, the current system has zh_CN.utf8, ignore this section.
yum install kde-l10n-Chinese
Temporary modification. After restarting the server, it will be restored to the previous settings.
Revised to Chinese as follows:
LANG="zh_CN.UTF-8"
Use locale to view the current system language, which has been successfully modified.
vi /etc/locale.confLANG=zh_CN.UTF8
As shown in the following figure:
After saving, use reboot to restart the system.
localectl set-locale LANG=zh_CN.UTF8
Restart the system using reboot.
售前咨询电话
400-811-8890转1
在线技术支持
在线QQ:800049425
热线电话:400-811-8890转2
总裁办24H投诉
热线电话:173-1278-1526
文 档反 馈
鼠标选中内容,快速反馈问题
鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。
不再提示
10s后关闭