title: ASP.NET Excel export encoding problem
body: <p>I'm doing some Excel Exports on the ASP.NET Site.
  Everything works except of the Encoding. When I open it in Excel, it looks like this:</p>
  
  <blockquote>
    <p>Eingabe Kosten je GerÃ¤t GerÃ¤t:
    GerÃ¤tebezeichnung:
    Betriebsmittel     HeizÃ¶l in â‚¬:    4
    Dieselverbrauch in â‚¬:   4</p>
  </blockquote>
  
  <p>This is my code:</p>
  
  <pre><code>Response.Clear();
  Response.ContentType = "application/ms-excel";
  Response.AddHeader("Content-Disposition", "inline;filename=NachkalkGeraete.xls;");
  var writer = new HtmlTextWriter(Response.Output);
  
  SomeControl.RenderControl(writer); /* FormView, Table, DataGrid... */
  
  Response.End();
  </code></pre>
  
  <p>I've already tried explicitly set the Encoding.. but no change occured:</p>
  
  <pre><code>Response.Clear();
  Response.ContentType = "application/vnd.ms-excel";
  Response.AddHeader("Content-Disposition", "attachment; filename=NachkalkGeraete.xls");
  
  Response.BufferOutput = true;
  Response.ContentEncoding = System.Text.Encoding.UTF8;
  Response.Charset = "UTF-8";
  EnableViewState = false;
  
  System.IO.StringWriter tw = new System.IO.StringWriter();
  HtmlTextWriter hw = new HtmlTextWriter(tw);
  
  SomeControl.RenderControl(hw);
  
  Response.Write(tw.ToString());
  Response.End();
  </code></pre>
  
  <p>What is wrong, please?</p>