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


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.
~~~~



Relevant Pages

  • Re: Microsoft FTP Server problem on W2K?
    ... client (rather than another server, as in proxy transfer), the IP address ... port) currently in use on the control connection. ... >the remote FTP server was, at least at a TCP level, prepared to accept the ...
    (microsoft.public.inetserver.iis.security)
  • Re: Formatting ASCII to be read by Windows NotePad
    ... I've had issues in the past uploading to a MacOS based ftp server ... It can be a client and/or server software issue. ... remote FTP server you are given to connect to will be setup right. ...
    (comp.lang.perl.misc)
  • RE: FTP Problems
    ... server on SBS from an XP client, but you cannot access the FTP server on XP ... Try to use IE on the SBS server to access the FTP on the XP client. ...
    (microsoft.public.windows.server.sbs)
  • Re: timezone missing for ftp transfers...
    ... > from our Win2k server the timezone is ignored and the file ... This is going to depend on what the client software uses to set the local ... measure (because the client can't tell what time zone is set at the server ... but the FTP server in IIS behaves correctly for either ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: how to upload a file with chinese filename to ftp server in
    ... In fact I use Serv-u Ftp server,not ... artiles in the internet about configuration of Serv-u Ftp. ... > client and server be exactly the same. ... > special characters or file-system special characters, ...
    (microsoft.public.win32.programmer.networks)

Loading