title: ASP.NET changing character encoding to windows-1252
body: <p>I have the following mark-up:</p>
  
  <pre><code>    &lt;head id="Head1" runat="server"&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
      &lt;title&gt;
  
  
  
      &lt;asp:ContentPlaceHolder ID="TitleContent" runat="server" /&gt;
      &lt;/title&gt;
      &lt;asp:ContentPlaceHolder ID="HeaderContent" runat="server" /&gt;
      &lt;link href="~/Content/Site.css" rel="stylesheet" type="text/css" /&gt;
      &lt;link href="~/PublicPages/LogIn.css" rel="Stylesheet" type="text/css" /&gt;
  
      &lt;/head&gt;
      &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
  
      &lt;div class="page"&gt;
          &lt;div id="header"&gt;
      .....
  </code></pre>
  
  <p>and this web.config</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;configuration&gt;
       &lt;configSections&gt;
  
  
      &lt;/configSections&gt;
      &lt;system.web&gt;
      &lt;machineKey validation="SHA1" /&gt;
      &lt;globalization
        fileEncoding="utf-8"
        requestEncoding="utf-8"
        responseEncoding="utf-8"
        culture="en-US"
        uiCulture="de-DE"
      /&gt;
  </code></pre>
  
  <p>On postback, I get this error in firefox 
  The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must to be declared in the document or in the transfer protocol
  and a blank page</p>
  
  <p>Checking the source in IE, I see :</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;
  &lt;HTML&gt;&lt;HEAD&gt;
  &lt;META content="text/html; charset=windows-1252" http-equiv=Content-Type&gt;&lt;/HEAD&gt;
  &lt;BODY&gt;&lt;/BODY&gt;&lt;/HTML&gt;
  </code></pre>
  
  <p>So how do I prevent asp.net from returning a page with windows-1252 charset?</p>