Linux character set and FTP transmission garbled processing

Source: Internet
Author: User
Tags i18n locale ftp transfer

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.