The vsftpd-2.1.0 version has solved the problem. The latest edition has no need to modify any settings to support a variety of character sets. But if you are still using the lower version of VSFTPD, then the following methods can help you solve the problem of garbled Chinese.
Method One:
Patch Software Downloads:
Http://www.cublohttp://www.aliyun.com/zixun/aggregation/9457.html ">g.cn/u/2340/showart_428936.html
Process:
Download vsftpd-2.0.3.tar.gz,http://download.chinaunix.net/down.php?id=22115&resourceid=11158&site= 1, then extract the folder vsftpd-2.0.3
Download the patch vsftpd-2.0.3-encoding.patch.tar.bz2,http://www.linuxsir.org/bbs/attachment.php?attachmentid=31720&d= 1136009318, decompression to get the patch.
The patch is then copied into the vsftpd-2.0.3 to perform
sudo patch-p1< vsftpd-2.0.3-encoding.patch (last is the patch name) to the source code patch,
Then make compiles, but then with the error generated about SYSDEPUTIL.C, Google to the file to be patched,
Download Http://linuxfromscratch.org/pipe ... 9f56/attachment.bin
Then extract the Attachment.bin (in fact not a binary file), and then copy it into vsftpd2.0.3 's source code to execute patch Sysdeputil.cattachment.bin,
Make it OK,
Finally make install after the successful installation of/etc/vsftpd.conf, add
Charset_filter_enable=yes,
charset_client=gb2312,
Charset_server=utf8.
After testing in Windows, upload a file via FlashFXP, and look normal under Linux.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Method Two:
centos5.2 also out for some time, has not had the opportunity to do, recently had the opportunity, I installed a virtual machine, step-by-step loading up, but on the installation centos5.2 some small details, we need attention.
Is centos5.2 in the installation, I hope you must choose to install the English version of the main reason to do so is to avoid garbled problems, but also to be set up, can completely avoid garbled, we can so set:
We first edit this file vi/root/.bash_profile insert a row of export LANG=ZH_CN. GB2312
The image above is my virtual machine settings, you can be like my settings, you can also insert a line on the/ROOT/.BASHRC
Export LANG=ZH_CN. GB2312, both of these methods are possible.