title: How do I set character encoding to UTF-8 for default.html?
body: <p>I spent the last few hours getting my website to validate <em>HTML 4.01 Strict</em> and I actually have succeeded in that, but there is still one warning which I can't get rid of. The warning is:</p>
  <blockquote>
  <p>Character Encoding mismatch!</p>
  <p>The character encoding specified in
  the HTTP header (iso-8859-1) is
  different from the value in the 
  element (utf-8). I will use the value
  from the HTTP header (iso-8859-1) for
  this validation.</p>
  </blockquote>
  <p>The page in question is <a href="http://www.dubiousarray.net/default.html" rel="nofollow noreferrer">www.dubiousarray.net/default.html</a>. As you can see from the page source I have the following meta element:</p>
  <pre><code>&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=utf-8&quot;&gt;
  </code></pre>
  <p>and I have made sure that the default.html file is saved with UTF-8 encoding. The strange thing is all the other pages in the site validate without this warning and they have the same meta tag and were saved in exactly the same way. I am pretty sure it is something to do with the server configuration. The .htaccess file looks like this at the moment:</p>
  <pre><code># Use PHP 5 as default
  AddHandler application/x-httpd-php5 .php
  AddDefaultCharset UTF-8
  </code></pre>
  <p>But I have tried all the fixes shown on <a href="http://www.askapache.com/htaccess/setting-charset-in-htaccess.html" rel="nofollow noreferrer">this page</a> and none of them worked. How can I go about getting rid of this warning?</p>
  <p>In Firefox, if you right click on the page and select 'View Page Info', <em>default.html</em> shows as ISO-8859-1, while all the other pages show UTF-8.</p>
  <p>All the html file have been created and saved in the exact same way (character encoding set to UTF-8 without <a href="https://en.wikipedia.org/wiki/Byte_order_mark" rel="nofollow noreferrer">BOM</a>), but <em>default.html</em> is the only one which isn't displaying as UTF-8. So I assume the server is doing something special to the <em>default.html</em> file though I am not sure what as there is not sign of it in the <em>.htaccess</em> file.</p>