Linux Chinese display garbled problem

Check the character sets supported by the system



 

View character set

cat /etc/sysconfig/i18n

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

 

Modify character set

# vi / etc / sysconfig / i18n
LANG = "zh_CN.utf8"
SUPPORTED = "zh_CN.UTF-8: zh_CN: zh"
SYSFONT = "latarcyrheb-sun16"

 

Execute the following command to make it take effect

source /etc/sysconfig/i18n

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326443433&siteId=291194637