International characters [FTPClient / VFS]
When I access a FTP server via VFS, indirectly using FTPClient, and there are directories with characters like ö, ë, ü, I get illegal characters. An encoding issue it seems. I traced it back to the FTPClient class which already returns incorrectly file names. The question naturally is: how to I tell the FTPClient to use a different encoding? The FTP server is Alfresco, so it it written in Java. I assume I need to use UTF8. Tom - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: International characters [FTPClient / VFS]
On 2010-03-25 11:06, Tom wrote: The question naturally is: how to I tell the FTPClient to use a different encoding? The FTP server is Alfresco, so it it written in Java. I assume I need to use UTF8. Since I have a patch version of VFS (because of another Alfresco FTP problem) anyhow, I hacked a client.setControlEncoding(UTF8); // Alfresco uses UTF8 into the FtpClientFactory. But there should be a better way. Tom - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: International characters [FTPClient / VFS]
But there should be a better way. I notice that FileZilla automatically switches to UTF8, so I assume the FTP server informs the client what it is using? And that common-net FTP should be modified? Tom - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: International characters [FTPClient / VFS]
File a JIRA. On Thu, Mar 25, 2010 at 6:21 AM, Tom t...@tbee.org wrote: But there should be a better way. I notice that FileZilla automatically switches to UTF8, so I assume the FTP server informs the client what it is using? And that common-net FTP should be modified? Tom - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org