Re: how to upload a file with chinese filename to ftp server in vb.
From: Alun Jones [MSFT] (alunj_at_online.microsoft.com)
Date: 02/28/05
- Next message: Mick: "SSL C++ Sample Code"
- Previous message: Duckmonkeyman: "DHCP Callout API Memory Allocation"
- In reply to: steven huang: "how to upload a file with chinese filename to ftp server in vb."
- Next in thread: steven huang: "Re: how to upload a file with chinese filename to ftp server in"
- Reply: steven huang: "Re: how to upload a file with chinese filename to ftp server in"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 28 Feb 2005 14:53:11 -0800
"steven huang" <stevenhuang@discussions.microsoft.com> wrote in message
news:FDA08639-A9C0-42CE-B024-F1D06D861CC1@microsoft.com...
>I have used the example in the msdn of article Id:832679 to implement the
>ftp
> function. Throuth this example, I can upload files with english file name
> to
> a ftp server. but if I want to upload a file with chinese filename,the
> encoding is unreadable. And the attemp will be failed. And the download
> process will also be failed. I dont know why. should i set the encoding
> for
> Chinese filename?
This is something that is on our plans for future support.
Currently, the IIS FTP server has limited support for multi-byte character
set (MBCS) sequences in file names, and requires that the code-page on
client and server be exactly the same. Unfortunately, there may be
collisions between valid MBCS names in some code-pages, and either FTP
special characters or file-system special characters, so those characters
may get translated or removed even if you are using the same code-page at
client and server.
There is an RFC (RFC 2640) that describes using the UTF-8 encoding to get
around that - if you make your FTP client use UTF encoding, it may not make
the file names readable in an Explorer window local to the server, but to
another client, the file name will be exactly as you used it when uploading.
Alun.
~~~~
- Next message: Mick: "SSL C++ Sample Code"
- Previous message: Duckmonkeyman: "DHCP Callout API Memory Allocation"
- In reply to: steven huang: "how to upload a file with chinese filename to ftp server in vb."
- Next in thread: steven huang: "Re: how to upload a file with chinese filename to ftp server in"
- Reply: steven huang: "Re: how to upload a file with chinese filename to ftp server in"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|