I am also having a problem with UTF-8 encoded file names. I have a script that lists files and JFileDownload is making proper HTTP requests back to download each file. It has the filenames right, as the server side script is able to provide the requested downloads. However, I believe JFileDownload is not decoding the filename from UT-8 before saving it to disk.
The filename "Iñtërnâtiônàlizætiøn.rar" ends on the disk as "Iñtërnâtiônà lizætiøn.rar". The same messed up name is also displayed in the applet, while downloading.
The server is providing the following headers:
Code: Select all
Content-Type: application/download; charset=UTF-8
Content-Disposition: attachment; filename="Iñtërnâtiônà lizætiøn.rar"
The Java applet should decode the "filename" using the provided charset. All browsers work perfectly fine with the same script, so I assume the problem is from JFileDownload.