View the current system character set
[Email protected] ~]# locale
Lang=zh_cn. UTF-8
Lc_ctype= "ZH_CN. UTF-8 "
Lc_numeric= "ZH_CN. UTF-8 "
Lc_time= "ZH_CN. UTF-8 "
Lc_collate= "ZH_CN. UTF-8 "
Lc_monetary= "ZH_CN. UTF-8 "
Lc_messages= "ZH_CN. UTF-8 "
Lc_paper= "ZH_CN. UTF-8 "
Lc_name= "ZH_CN. UTF-8 "
Lc_address= "ZH_CN. UTF-8 "
Lc_telephone= "ZH_CN. UTF-8 "
Lc_measurement= "ZH_CN. UTF-8 "
Lc_identification= "ZH_CN. UTF-8 "
Lc_all=
[Email protected] ~]# locale
Lang=en_us. UTF-8
Lc_ctype= "en_US. UTF-8 "
Lc_numeric= "en_US. UTF-8 "
Lc_time= "en_US. UTF-8 "
Lc_collate= "en_US. UTF-8 "
Lc_monetary= "en_US. UTF-8 "
Lc_messages= "en_US. UTF-8 "
Lc_paper= "en_US. UTF-8 "
Lc_name= "en_US. UTF-8 "
Lc_address= "en_US. UTF-8 "
Lc_telephone= "en_US. UTF-8 "
Lc_measurement= "en_US. UTF-8 "
Lc_identification= "en_US. UTF-8 "
Lc_all=
Lc_ctype
Character classification and case conversion.
Lc_collate
Collation order.
Lc_time
Date and time formats.
Lc_numeric
Non-monetary numeric formats.
Lc_monetary
Monetary formats.
Lc_messages
Formats of informative and diagnostic messages and
Interactive responses.
[[Email protected] ~]# env |grep LANG
Lang=zh_cn. UTF-8
[Email protected] ~]# Locale-a | grep zhzh_CNzh_CN.gb18030zh_CN.gb2312zh_CN.gbkZh_cn.utf8zh_HKzh_HK.big5hkscszh_HK.utf8zh_SGzh_ SG.gb2312zh_SG.gbkzh_SG.utf8zh_TWzh_TW.big5zh_TW.euctwzh_TW.utf8
[Email protected] ~]# Locale-a | grep En_USen_USen_US.iso88591en_US.iso885915en_US.utf8
[Email protected] ~]# vi/etc/sysconfig/i18nLANG= "ZH_CN. UTF-8 "sysfont="latarcyrheb-sun16"~
Locale-------Linux Character set