Hi,
maybe someone had the same problem:
http://support.microsoft.com/kb/895262/en-us
This Hotfix is only available for Windows 2003, but we also use Windows
2000 and for development Windows XP. So I thought ASP.NET 2.0 will make
things better.
And now ASP.NET is there and I found this:
http://msdn2.microsoft.com/en-us/lib...rencoding.aspx
But if I set the Encoding to Unicode, I get this:
'utf-16' cannot be used as Header Encoding
Here is a little testing app:
string filename = "abcdeäüö.txt";
System.Text.UnicodeEncoding enc = new
System.Text.UnicodeEncoding();
Response.ContentType = "text/plain";
Response.Clear();
byte[] buffer ={ 65 };
Response.HeaderEncoding = enc;
Response.AddHeader("Content-Disposition",
"attachment;filename=" + filename);
Response.BinaryWrite(buffer);
Response.Flush();
Response.End();
Is it a bug or a feature? ;-)
thx in advance
Bjoern Wolfgardt