title: How can I convert input to HTML Characters correctly
body: <p>Let's say I'm including a file which contains html. The html have characters as exclamation symbols, Spanish accents (á, ó). The parsed included text gets processed as symbols instead of their correct value. This happens on FF but not on IE (8).</p>
  
  <p>I have tried the following functions:</p>
  
  <p><strong>htmlspecialchars, htmlentities, utf8_encode</strong></p>
  
  <pre><code>include htmlentities("cont/file.php");
  </code></pre>
  
  <p>Sample <em>file.php</em> contents:</p>
  
  <pre><code>&lt;div&gt;Canción, “Song Name”&lt;/div&gt;
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>Canci�n, �Song Name�
  </code></pre>