Solve Chinese garbled characters in KDE of archlinux
Source: Internet
Author: User
The KDE of archlinux solves the problem of garbled Chinese characters in the newly installed archlinux. The Chinese files on the hard disk are garbled in doldolphin. In addition, many systems are not garbled or English. The ls in the console is garbled. When running locale on www.2cto. comconsole, some Chinese characters in KDE of... arch linux are garbled to solve the newly installed arch linux. The Chinese files on the hard disk are garbled in doldolphin. In addition, many systems are not garbled or English. The ls in the console is garbled. When running locale on www.2cto.com console, it is found that the value of LC_ALL variable is null. If this value is set, the ls result will not be garbled. Set LC_ALL = zh_CN.UTF-8 in/etc/locale. conf and restart. The result is invalid or messy. However, LC_ALL still does not set the value in the result of running locale. Check/etc/profile. d/locale. sh and find that LC_ALL is not processed. Therefore, LC_ALL does not work even if it is set in/etc/locale. conf. Therefore, the LC_ALL processing code is added here: www.2cto.com Shell code [-n "$ LC_ALL"] & export LC_ALL. after restarting, no garbled code is found, in the past, English was also used to become Chinese.
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