KDE of arch linux solves the problem of Chinese garbled characters in the newly installed arch linux today. 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.