I currently use htmlentities() to filter data coming from the database:
echo htmlentities($variable_name);
I live here in the USA and this works for me but one of my colleagues lives in Brazil and this is not working for him some characters are to be missing. Why is that so? And how can I internationalize this function?