Asp.Net: Small Localization Tip
I think it is a very common problem in web applications. The problem is downloading files with non-english filename from the internet, programmatically via http. I think many of you had such experience, either as a programmer or as a user. You just get the file without any problem with gibbrish filename though on your computer. Globalization tag in web.config would not help in this case. I bet there is no acceptable solution on the most common asp.net forums also. So here is a small, but powerful tip, how to do that:
Response.AppendHeader("Content-Disposition", "attachment;filename=" + Server.UrlPathEncode(FileName));
Friday, December 10, 2004 10:42 PM