Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-302

FTP Filename Encoding

    XMLWordPrintableJSON

Details

    Description

      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: http://issues.apache.org/jira/browse/FILEUPLOAD-56.

      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");

      Attachments

        1. Modified_FtpClientFactory.java
          5 kB
          Nikos-Filippos Avdoulos

        Activity

          People

            Unassigned Unassigned
            lichter Oliver Tupran
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: