title: How to set HTTP header to UTF-8 using PHP which is valid in W3C validator
body: <p>I have several <a href="http://en.wikipedia.org/wiki/PHP" rel="noreferrer">PHP</a> pages echoing out various things into <a href="http://en.wikipedia.org/wiki/HTML" rel="noreferrer">HTML</a> pages with the following code.</p>
  
  <pre><code>&lt;meta http-equiv="Content-type" content="text/html; charset=utf-8" /&gt;
  </code></pre>
  
  <p>However, when I validate using the <a href="https://en.wikipedia.org/wiki/W3C_Markup_Validation_Service" rel="noreferrer">W3C validator</a> it comes up with:</p>
  
  <blockquote>
    <p>The character encoding specified in the HTTP header (iso-8859-1) is different from the value in the  element (utf-8).</p>
  </blockquote>
  
  <p>I am quite new to PHP, and I was wondering if I could and should change the header for the PHP files to match the HTML files.</p>