I'm writing a small newsletter in PHP
I'm using PHP's htmlentities($str)
so I'll have no problems with encoding in client's email.
This $str
is coming out of mysql.
I see ó
when it's supposed to be a ó
in the client.
I'm also writing some text in the newsletter where I echo "ó";
and I see it in the client as ó
.
Then I suppose that I have to make some treatment to $str
before appliyng the htmlentities
but I don't understand what should I do.
How can I know what is wrong with (what treatment should I do to) $str
?