Download file with Unicode file nameDownload file with Unicode file nameHi,
Is jFileDownload supports download file with Unicode file name? I tried jFileDownload with Unicode file and the result is always: Download failed: <file> not found. Thanks Re: Download file with Unicode file nameYes, it works. See screenshot below with Japanese characters. I guess you have a problem with encoding.
Make sure you have:In HTML: In JavaScript: In server-side script (i.e. for JSP) I also enclose a full working/tested sample for JFileUpload + JFileDownload + JSAPI 2.9 Pro: Does it help? Re: Download file with Unicode file nameMany thanks. I'll try and let you know.
Re: Download file with Unicode file nameI also have this problem .
I tested on Windows 7 but it still display 'Donwload failed: cars_1918要求仕様書.jpg not found' ! I think this sample run well on Linux . Can it run well on Window ? I use PHP but I can't find code for encoding UTF-8 in server script . Where can I put it ? Thanks for reply ! Re: Download file with Unicode file nameSample was tested under JRE 1.6 + Tomcat 6 + Windows Vista.
Double check encoding support in PHP, see: http://htmlpurifier.org/docs/enduser-utf8.html or http://www.phpwact.org/php/i18n/charsets Re: Download file with Unicode file nameHi,
Using your new 2.9 sample script doesn't help much. I still facing "File not found" problem. Below are what i have done: - Set javascript & html page encode to UTF-8 - Set server side script encode to UTF-8 However, in server side script if I download a file with non-latin file name then the script stop right after "list" command. Any ideas? Re: Download file with Unicode file nameHi,
It seems like there was a wrong file name comparison in getHTTPRemoteTFile function (wrong encoding or something?) so server side script never has a chance to be called ? Re: Download file with Unicode file nameOr it may be a problem in you server-side script. It works fine here. We've tested with Japanase file + JSP/TOMCAT/JRE1.6
Re: Download file with Unicode file nameHi,
Server side script never be called, so i doubt it is a server side script problem. I used your downloader with PHP + IIS web server not JSP + Apache Tomcat. Have you ever tested your downloader with above server spec? However, i'll try JSP + Tomcat if it works. Thank you for your support. Re: Download file with Unicode file nameI 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
|