title: Response.Write - filename encoding wrong in Internet Explorer
body: <p>I use the following code to send files from my server to the client:</p>
  
  <pre><code>Response.AppendHeader("content-disposition", "attachment; filename=" + FileName);
  Response.ContentType = MimeType;
  Response.WriteFile(PathToFile);
  Response.End();
  </code></pre>
  
  <p>This works fine. Problem is, that when I download files from Internet Explorer, special characters, like the danish æ, ø and å, gets interpreted wrong. So i file with the name 'Test æ ø å file.txt' downloads as 'Test Ã¦_Ã¸_Ã¥ file.txt'</p>
  
  <p>I´ve tried adding Byte Order Mark to the response:</p>
  
  <pre><code>byte[] BOM = { 0xEF, 0xBB, 0xBF };
  Response.BinaryWrite(BOM);
  </code></pre>
  
  <p>And setting the charset:</p>
  
  <pre><code>Response.Charset = "UTF-8";
  Response.ContentEncoding = System.Text.Encoding.UTF8;
  </code></pre>
  
  <p>But none if it helped.
  This seems only to be a problem in Internet Explorer.</p>