Download file with Unicode file name

Files and folders downloader add-on with resume support.

Re: Download file with Unicode file name

Postby support » Sat Sep 22, 2012 8:47 am

Do you have the following parameter:
document.writeln('<PARAM NAME="encoding" VALUE="UTF-8">');
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm

Re: Download file with Unicode file name

Postby vlad » Sat Sep 22, 2012 9:45 am

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

Postby vlad » Sat Sep 22, 2012 10:39 am

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.
vlad
 
Posts: 82
Joined: Sun Jan 04, 2009 6:38 pm

Previous

Return to JFileDownload



cron

Sitemap | Privacy Statement | Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc.
in the U.S. and other countries. All other company and/or product names are the property of their respective owners.