Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.9k views
in Java FTP by (180 points)
Hi ,
I have following Simple Code to connect to an ftp server. I'm Using encoding as "UTF-16".
The connect() method is waiting infinitely and nothing happens.... no exception and also the program doesn't get terminated.
This is My Code:

ftpClient.setRemoteHost(Server);
ftpClient.setControlEncoding("UTF-16");
ftpClient.connect();
ftpClient.login(user,password);
ftpClient.setConnectMode(FTPConnectMode.PASV);
ftpClient.setType(FTPTransferType.BINARY);
ftpClient.quit();

Same works fine when I try to use encoding as "UTF-8". Anybody knows is there any other way to set "UTF-16"?
Thanks,
Yogi.

3 Answers

0 votes
by (162k points)
Does the server support UTF-16?
0 votes
by (180 points)
[quote="support2"]Does the server support UTF-16?[/quote]


How one will check whether FTP Server Supports "UTF-16"?

I checked with Windows 7 but it has one setting -> Allow UTF-8 = True / False.
and in FileZilla (Client) one can set Force UTF-8 or not?
But nothing specific about UTF-16.

Thanks,
Yogi
0 votes
by (162k points)
I've not heard of an FTP server supporting UTF-16 (although no doubt they exist). So I'm wondering why you think your FTP server will.

Categories

...