I'm trying to print data from a table that contains a special character such as é. I've used the function htmlentities() hoping it solves the problem, but instead of solving the problem, the data wouldn't appear at all.
For example:
I'm supposed to print this:
"Lightroom 3 pour les Phototographes du Numérique"
However, the character é appears as �. Thus using the fuction htmlentities() should logically solve the problem. Yet whilst using it with a string that contains the character é nothing prints but an empty space. Using the function on a string that contains no special character works fine.
"Lightroom 3 pour les Phototographes du Numerique"
prints as it is, while
"Lightroom 3 pour les Phototographes du Numérique"
prints as
" "
My databse and all the tables are UTF-8 encoded, as well as my html document.