I had my site's data entry from some third party. They were having problems because of special characters like quotes, double quotes, pound simple etc.
So I applied htmlentites($var, ENT_QUOTES) to all my data. That way, it is being sorted ok with everything turned into its subsequent HTML code and it looks Good.
But it looks good in admin but doesnt show right on site on some places and shows things like ? question marks at places although the data looks clean.
My site is for UK users, Do you think I should add something in my html head to make it recognize it better.
I am using PHP 4 and MySQL5.
The data shows right in admin edit forms as well as admin grid pages. It has something to do with my front end logic that I cant understand.
I have included
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
in my front end html while i dont add it in the backend. Could this be a problem. Can I somehow tell my page that dude, these are special characters, Give them some respect.
You know what i mean