The recent FTP transfer files to the Linux server, there is garbled situation, the transmission of the file name with Chinese characters. The system language is then set to support Chinese
Install the relevant package first
Yum-y Groupinstall Chinese-support
Edit File/etc/sysconfig/i18n
Vi/etc/sysconfig/i18nlang= "ZH_CN. GB18030 "#LANG =" zh_cn. UTF-8 "Language=" ZH_CN. Gb18030.zh_cn. GB2312:ZH_CN "supported=" ZH_CN. GB18030:zh_CN:zh:en_US. Utf-8:en_us:en "sysfont=" Latarcyrheb-sun16 "
The source file is
Lang= "en_US. UTF-8 "sysfont=" Latarcyrheb-sun16 "
Restart the machine after modification
Can be found to have been displayed in Chinese,
But when testing the FTP transmission, the transmission is still garbled.
After consulting the factory, said the transmission using the character set is GB2312, so set up, modify the/etc/sysconfig/i18n
Lang= "ZH_CN. GB2312 "
Found Public,picture,video in home directory and so on are displayed as garbled
previously set to lang= "zh_cn.gb18030" , are normal, but due to the development to deal with the transmitted pictures, currently can only be modified to GB2312.
After the test machine is done, want to change to the previous English, after the change login found the following tips:
-bash:warning:setlocale:lc_ctype:cannot change Locale (Zh_us. UTF-8): No such fileor directory-bash:warning:setlocale:lc_collate:cannot change locale (Zh_us. UTF-8): No suchfile or directory-bash:warning:setlocale:lc_messages:cannot change locale (Zh_us. UTF-8): No suchfile or directory-bash:warning:setlocale:lc_numeric:cannot change locale (Zh_us. UTF-8): No suchfile or directory-bash:warning:setlocale:lc_time:cannot change locale (Zh_us. UTF-8): No such fileor directory
Found to be zh_us. UTF-8, try modifying to lang= "en_US. UTF-8 ", after reboot, log in, everything is OK
This article is from "The girl said" blog, please be sure to keep this source http://sugarlovecxq.blog.51cto.com/6707742/1663149
Linux character set and FTP transmission garbled processing