download problem with non-ASCII file names (korean)

G

Guest

Hi !

To download file, I use the following

< My code >
// encode non-ASCII Filename
string filename = Server.UrlEncode("the korean filename");
Response.AppendHeader("Content-Disposition" , "attachment; filename="
+filename+";");
Response.AppendHeader("Content-Type", "application/octet-stream");

< IE Setting >
There is an advanced option named "Always send URLs as
UTF-8" in "Tools - Internet Options - Advanced" menu.
The default setting for this option is "checked".

It works well when the length of file name is below 20.

But, when I use the file name whose length is over 20,
in the confirmation dialog, the file name do not display or display the
download page name or encoding value according to the length of file name.

I dont know why?

Any suggestions or ideas would be appreciated.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top