|
Hi, Is there a way to list and download files that have unicode chars in file name? Our code looks something like this:
Files that have Chinese symbols as file name are listed as "????.txt" and cannot be downloaded. I tried switching encoding with: client.Encoding = System.Text.Encoding.Unicode; but then I don't get any result. Thanks |
|
You have to specify the correct encoding (depending on the FTP server). From the fact the
Thanks for your answer, but my encoding is "Western European (Windows)" (WebName:Windows-1252), and sftp server is running on windows server. So there you can rename the file using the chinese symbols. I did try changing the encoding at the runtime, but none of them seems to work. Even if I don't try to filter out the results (just use GetList() without args), ASCII, UTF7 and UTF8 throws an exception, while BigEndianUnicode, Unicode, UTF32 returns scrambled results.
(28 Nov '11, 20:22)
zmrxac
Can you please send us the
(29 Nov '11, 14:17)
Lukas Matyska ♦♦
|