commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikos-Filippos Avdoulos (JIRA)" <>
Subject [jira] Commented: (VFS-302) FTP Filename Encoding
Date Mon, 22 Mar 2010 13:53:27 GMT


Nikos-Filippos Avdoulos commented on VFS-302:

I had the same problem with greek file names with FTP. I solved it by adding the following
line : client.setControlEncoding("utf-8") in the's
method "createConnection(....)". It worked and now i can handle files with greek file names
on a ftp server.

> FTP Filename Encoding
> ---------------------
>                 Key: VFS-302
>                 URL:
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: Linux, vsftpd
>            Reporter: Oliver Tupran
> I tried to copy a file like "m√ľnchen.jpeg" using VFS to a remote ftp server, which resulted
in a wrong encoded filename on the server.
> See also a similar issue from the commons-fileupload project:
> Forgive my newbieness on VFS, but I would really appreciate a solution.
> I tried something that worked, but it really seems like a dirty trick:
> String encodedFilename = new String(filename.getBytes(), "ISO-8859-1");

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message