Filename getting currepted when downloading a file with filename having french charac

jophin

New member
Joined
Jun 4, 2008
Messages
4
Programming Experience
Beginner
Hi ,
I am downloading a file with filename having french characters .
My code is like this ,

strFilename = "dossier de téléchargement.docx"
Response.AddHeader("Content-Disposition", "attachment;filename=""" &strFilename)

But when we are using Internet Explorer after downloading , the filename is converted to

'dossier_de_téléchargement.docx' .

Please help

Thanks in advance
Jophin

jophin
 
I think it is a bug in IE because FF show correct filename. Response.HeaderEncoding defaults to UTF8 by the way, so that should be correct. One workaround I found makes it work in IE but now not in FF:
VB.NET:
"attachment;filename=""" & Server.UrlPathEncode(filename) & """"
 
Problem solved.

Hi John,
Thank you for your reply . The problem is solved .Now I am checking for the browser .If it is IE I am doing it using Server.UrlPathEncode() .
Regards
Jophin
 
Back
Top