I am having massive problems and very confused of what to do?
My Mysql database Collation : latin1_swedish_ci
My header : meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
Before something goes into the database I do a : html_entity_decode($input, ENT_QUOTES);
If I enter charachters 'åäö' into the database and then display them, they show åäö
What can I do to take care of this? I don't understand. Thank you very much.
Thanks everyone. I changed from htmlentities() to htmlspecialchars() and everything is fine now.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.