title: PHP include html page charset problem
body: <p>after querying a mysql db using the code below i have generated an html file:</p>
  
  <pre><code>    $myFile = "page.htm";
  </code></pre>
  
  <p>$fh = fopen($myFile, 'w') or die("can't open file");
    fwrite($fh, $row['text']);
    fclose($fh);</p>
  
  <p>On the msql db the text is encoded using utf8_general_ci.
  But i need to include it in a php web page as shown below:</p>
  
  <pre><code> &lt;?include('page.htm');?&gt;
  </code></pre>
  
  <p>bearing in mind that the php web page uses utf8 charset on the header:</p>
  
  <pre><code>&lt;meta http-equiv="content-type" content="text/html; charset=utf8" /&gt;
  </code></pre>
  
  <p>Now if i write on the db some letters with grave accent (è à ì) or a quote character and i open directly page.htm and on the db i see it all looking ok, but when i view it on the php page i see a question mark � character instead of those I originally wanted.
  Why?!
  Thanks in advance!</p>