title: Show spanish characters in a form
body: <p>I have a form and in a textarea I want to display some text that have some spanish characters but encoded as html. The problem is that instead of the spanish character it displays the html code. I'm using htmlentities to display it in the form. my code to display is:</p>
  
  <pre><code>&lt;?php echo htmlentities($string, ENT_QUOTES, "UTF-8") ?&gt;
  </code></pre>
  
  <p>Any idea or I just shouldnt use htmlentities in a form? Thanks!</p>
  
  <p><strong>EDIT</strong>
  Lets say <code>$string = 'á'</code></p>
  
  <p>When I just do <code>&lt;?php echo $string ;?&gt;</code> I get <code>á</code>
  If I do <code>&lt;?php echo htmlentities($string, ENT_QUOTES, "UTF-8") ?&gt;</code> I get <code>&amp;aacute;</code></p>
  
  <p>I'm so confused!</p>