Download file with Unicode file name

Files and folders downloader add-on with resume support.
User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Download file with Unicode file name

Post by support »

Do you have the following parameter:
document.writeln('<PARAM NAME="encoding" VALUE="UTF-8">');

vlad
Posts: 82
Joined: Sun Jan 04, 2009 6:38 pm

Re: Download file with Unicode file name

Post by vlad »

Yes, "<PARAM NAME="encoding" VALUE="UTF-8">" is in place.

vlad
Posts: 82
Joined: Sun Jan 04, 2009 6:38 pm

[SOLVED] Re: Download file with Unicode file name

Post by vlad »

Ok, I solved this. It seems that the HTTP header "Content-Type: text/html; charset=utf-8" (the charset part) is mandatory to be issued by the server when outputting the list of files to be downloaded. Seemed to me a bit unnecessary, as long as you are instructing the Java applet to expect an utf-8 encoded output.
Also, it turns out that the filename used when saving the files is the one from the HTML code, from the list of files and the actual filename provided by the server when the file is being downloaded is completely ignored. Just so people know.

P.S. The "meta" HTML tag doesn't seem to make any difference.

Post Reply