How to use PHP htmlentities()?
<p>In my project I currently use <code>htmlentities()</code> to filter data coming from the database:</p>



<pre class="lang-php prettyprint-override"><code>echo htmlentities($variable_name);
</code></pre>

<p>I am in the USA and this works fine for me. My friend is in Brazil and for him some text characters don't show up correctly.</p>

<p>How can I use <code>htmlentities()</code> so it internationalizes properly?</p>
