In windows, ftpserver Chinese garbled characters are uploaded from the ftp client to linux.

Source: Internet
Author: User
Tags ftp client
In windows, ftpserver Chinese garbled characters are uploaded from the ftp client to linux-Linux Enterprise Application-Linux server application information. For more information, see the following. Simple
The default encoding in windows xp is gbk.
In linux, the default value is utf8.
In this way, both ftp and rz are uploaded directly.
Chinese garbled characters may occur if transcoding is not performed.
I found a way to bypass this problem.
In windows, I create a large rar package for uploading.
Then upload this rar package
Finally, unrar the server.
In this case, Chinese characters are not garbled.
What are the specific causes?
I don't understand. It's estimated that rar will be automatically transcoded.

What I want to talk about here is how to avoid garbled Characters During ftp upload.
Here we mainly use an ftp server -- pure-ftpd that will be automatically transcoded.
Pure-ftpd supports a configuration parameter: ClientCharset
Set the ftp client (windows xp) Character Set.
Set it to gbk
When you upload an object through windows, it will automatically transcode (gbk?> Utf8)
This avoids Chinese garbled characters.

Note:
The debian system configuration is strange.
Is to create a file in the/etc/pure-ftpd/conf/directory: ClientCharset
It contains a line of content: gbk

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.