Title: download files with foreign/"illegal" chars
Hi,

I've searched the archives and the web and can't seem to find an answer as to whether or not this is currently possible with wget (I'm using version 1.9.1 on Mac OS X 10.4.2 for what it's worth).

I'm trying to download all files (via ftp) in a particular directory, recursively. The problem is many of the files have Chinese filenames. Depending on what characters are in the files, they either download properly or wget chokes on them. Here's what happens when wget chokes:

I'm using: wget -r -N --passive-ftp ftp://[EMAIL PROTECTED]/files

Logging in as login ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /files ... done.
==> PASV ... done.    ==> LIST ... done.

    [ <=>                                 ] 196           --.--K/s            
16:53:56 (36.63 KB/s) - `ftp.server.com/files/.listing' saved [196]

Removed `ftp.server.com/files/.listing'.
--16:53:56--  ftp://[EMAIL PROTECTED]/files/TOR-6047-1%20%A4%A4%B3U%B8%CB/
           => `ftp.server.com/files/TOR-6047-1 ???U??/.listing'
==> CWD /files/TOR-6047-1 ???U?? ... done.
==> PASV ... done.    ==> LIST ... done.
ftp.server.com/files/TOR-6047-1 ???U??: Invalid argumentftp.server.com/files/TOR-6047-1 ???U??/.listing: No such file or directory
unlink: No such file or directory
FINISHED --16:53:58--

Note that the question marks aren't necessarily question marks, but could be any "high ascii" characters I think. I tried logging in with a regular ftp client, and I'm seeing symbols like diamond shapes and such. Actually with the ftp client I can't even get in to one of the subdirectories with a Chinese name.

Does anyone have any idea if there's any way around this?

Thanks!
Ed

Reply via email to