Currently, I'm using htmlentities() in my app to filter data coming from the database:
echo htmlentities($variable_name);
Since I'm in the USA, this works perfectly for me. For my friend who lives in Brazil, several text characters don't display properly.
How can I use htmlentities() to ensure adequate internationalization?