Hello,
We cannot download folder/subfolder whose name contains "5C"-byte. Using version JfileDownload 2.9
Example : 全表示
Thank you for any help
Folder/subfolder name contains "5C"-byteRe: Folder/subfolder name contains "5C"-byteCould you provide the full URL with 5C char?
And your JavaScript too with applet declaration. Re: Folder/subfolder name contains "5C"-byteMy current developing evironment is Japanese locale , Symfomy PHP When using Japanese locale , I can not download folder with Japanese character as "C:\data\全表示" So i have to use function mb_convert_encoding() to encode Japanese char to Shift_Jis Example: 全表示 -> �S�\�� (with \ is 5C character) Jfiledownload show message "Download failed: 全表示 not found" I think this function of jfiledownload prevent me to download folder. print($type." ".$date." ".$size." ".$name."<br>\n"); Can you give me any advice for this case ? Hope receiving your reply !!! Re: Folder/subfolder name contains "5C"-bytePlease provide a ZIP with your HTML + Javacript too.
Re: Folder/subfolder name contains "5C"-byteWe've made test with filename such as cars_1918全表示.jpg. You have a live demo at:
http://www.jfileupload.com/products/dem ... nload.html First file to download is samplefile200901.jpg and second one is cars_1918全表示.jpg Resume/overwrite/skip options are enabled. It works fine if you've setup UTF-8 encoding correctly everywhere it is needed. In applet_http_download.html: Code: Select all
Code: Select all
In server-side PHP script: Code: Select all
print($type." ".$date." ".$size." ".$name."<br>\n"); will return UTF-8 that will be read by JFileDownload. I enclose my PHP scripts + HTML + JavaScript. In addition to the live demo, it should help you to understand what's wrong with your configuration. Re: Folder/subfolder name contains "5C"-byteOk , i see if I use charset UTF-8 is not generating error
The system I am using required charset is Shift_JIS I am using SQL Server (locale Japanese) + Symfony PHP + Window locale Japanese When i change charset Shift_JIS to UTF-8 , file not found when download. So i must use Shift_JIS charset to download file --> errors happen include download file having 5C character (\) Re: Folder/subfolder name contains "5C"-byteI don't see why it works on our server and not on yours. Did you check the online demo? UTF-8 is designed for all languages such as Japanese, Chinese, German,...
If you must store filename as SHIFT_JIS then you could convert SHIFT_JIS to UTF-8 in PHP in explorer.php and UTF-8 to SHIFT_JIS on upload, do you? |