anshuwap / mollify

Automatically exported from code.google.com/p/mollify
0 stars 0 forks source link

broken korean file name during download #341

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
when downloading a file that it's name has korean characters  , the name has 
been broken and so I changed some php code like as below :

the php file name is ./backend/include/OutputHandler.class.php

under the function name is downloadBinary ->

from 
--------
header("Content-Disposition: attachment; filename=\"". $filename ."\";"); 

to 
--------
header("Content-Disposition: attachment; filename=\"". 
iconv(iconv_get_encoding("input_encoding"), 
iconv_get_encoding("output_encoding"),$filename) ."\";");

and changed 2 directives on php.ini like below;
-----------------------------
iconv.input_encoding="UTF-8"
iconv.output_encoding="EUC-KR"

and then, this issue has been resolved.

please modify your php code like above in your future release

Thank you 

Original issue reported on code.google.com by dyse...@gmail.com on 5 Jan 2012 at 6:18

GoogleCodeExporter commented 9 years ago
Not the way this should be handled, see 
http://code.google.com/p/mollify/wiki/Troubleshooting#Filenames_have_corrupted_c
hars,_or_file_upload/download_does_not

Original comment by samuli.j...@gmail.com on 5 Jan 2012 at 8:59