View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008091 | mantisbt | csv | public | 2007-06-22 03:01 | 2009-06-26 12:07 |
Reporter | malaussena | Assigned To | vboctor | ||
Priority | normal | Severity | block | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.0.7 | ||||
Fixed in Version | 1.1.0a4 | ||||
Summary | 0008091: csv_export doesn't work when project name contains accentuated characters | ||||
Description | In french, for instance, project names often uses accentuated characters. I patched it using ths function : <?php And modifying :
and : header( 'Content-Disposition: attachment; filename="' . cp1250_to_utf2( $t_filename ) . '"' ); Maybe it's not the good patch to apply but it works. Please, find the rigth way to fix this. | ||||
Tags | No tags attached. | ||||
Maby be related to 0006217, but I find my fix better than urlencode (names are kept, only accents are removed). |
|
Fixed using urlencode() to be consistent with other fixes lately applied to similar download pages. |
|
Hi Downloading still ok with IE, but no more with Firefox when using accentuated characters. It's ok when I modify file_download.php and remove the test on 'MSIE'. Any idea ? |
|
Oops... I made a mistake. Do I need to create another bug ? |
|
For the export problem, urlencode is always used. For file_download.php we probably should do the same. |
|
I think the problem is that in csv_export we always URL encode, but in Firefox we only urlencode when using IE. In file_download.php, replace: Added Quotes (") around file name. Also in case of IE url encode the filename
With: Let me know, how you go. |
|
It's exactly what I did (and was saying in 0008091:0016232). Only leaving : header( 'Content-Disposition:' . $t_disposition . ' filename="' . urlencode($t_filename) . '"' ); in file_download.php solves the problem with Firefox. |
|
The fix for the file_download / firefox case is now tracked by 0008589. |
|