Code: Select all
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>When I echo the data in the page I get this small squares filled up with letters( ? ) when there are some special characters like ç.
If I do something like
Code: Select all
echo htmlentities($row['str'], ENT_COMPAT, 'ISO-8859-1');What I would like is to understand why this happens if everything is set to utf-8 and why do I have to convert to latin1 to make it work.
Thanks