1) description: Windows default encoding for GBK, Linux default encoding for UTF-8. The edited Chinese characters in Windows are garbled characters in Linux. To solve this problem, modify the default Linux encoding to GBK. 2) View supported character sets: # locale-a3) install the English version of the default character set configuration: # cat/etc/sysconfig/i18nLANG = &
1) description:
Windows's default encoding is GBK, and Linux's default encoding is UTF-8. The edited Chinese characters in Windows are garbled characters in Linux. To solve this problem, modify the default Linux encoding to GBK.
2) View supported character sets:
# Locale-
3) install the English version of the default character set configuration:
# Cat/etc/sysconfig/i18n
LANG = "en_US.UTF-8"
SYSFONT = "latarcyrheb-sun16"
4) change to the Chinese character set:
# Vi/etc/sysconfig/i18n
LANG = "zh_CN.GBK"
SUPPORTED = "zh_CN.UTF-8: zh_CN: zh"
SYSFONT = "latarcyrheb-sun16"
5) execute the following command or restart it to take effect.
# Source/etc/sysconfig/i18n