Hi,

I am trying to transfer files which have greek or chinese characters in the filenames.
Filename1 = ΞΠΦ
Filename2 = 试验

I am using GET from an unix ftp server to windows client.

1) If I do not setContentEncoding(), the files get transferred with incorrect filenames.
filenames = ΞΠΦ   and     试验

2) If I setContentEncoding("UTF-8"), the filenames get transferred correctly, but the files are empty.

This is my code:
ftp.setContentEncoding("UTF-8");
OutputStream output = new FileOutputStream(localPath);
InputStream input = ftp.retrieveFileStream(remotePath);
transferred = Util.copyStream(input, output);


Thanks in advance

Sincerely,
Melvin Desilva


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to