View Issue Details

IDProjectCategoryView StatusLast Update
0006217mantisbtlocalizationpublic2007-08-02 02:28
Reporterprima Assigned Tovboctor  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.0rc1 
Fixed in Version1.1.0a4 
Summary0006217: [all lang] Wrong fIlename on download
Description

While downloading project file with non-english name, it name interpret in browser default encoding and is unreadable.

Additional Information

May be fixed with in line 90 file file_download.php
header( 'Content-Type: ' . $v_file_type . ";charset=<Your charset>");

TagsNo tags attached.

Relationships

related to 0004084 closedsiebrand [all lang] Use UTF-8 codepage 
related to 0008091 closedvboctor csv_export doesn't work when project name contains accentuated characters 

Activities

malaussena

malaussena

2007-05-24 09:57

reporter   ~0014628

I have the same problem.
I don't know when it has begun, but now, I can't download attachment with accentuated characters.

Mantis : 1.0.7
Charset in MySQL : Latin1
language : french
$s_charset = 'windows-1252'; in lang/french.txt to support copy/paste from Word (with file encoded en UTF-8)
custom_strings_inc.php encoded in UTF_8

I tried the fix from prima... but it doesn't work for me :-(

Someone can help ?

Thanks

James Fu

James Fu

2007-05-30 03:04

reporter   ~0014653

I have the same problem,too. I fixed with in line 86 file file_download.php

Mantis : 1.1.0a3

if(preg_match( "/MSIE/", $_SERVER["HTTP_USER_AGENT"] )) {
header( 'Content-Disposition:' . $t_disposition . ' filename="' . urlencode($t_filename) . '"' );
} else {
header( 'Content-Disposition:' . $t_disposition . ' filename="' . $t_filename . '"' );
}

vboctor

vboctor

2007-06-09 12:23

manager   ~0014731

Did anyone got a chance to test James_Fu's fix?

James_Fu, why do you only urlencode the file name in case of MSIE? Should we do it for all browsers?

James Fu

James Fu

2007-06-09 12:40

reporter   ~0014733

I test IE6 and FireFox. If I not fix it, only IE download filename is not correct.