0

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.

Marcus Silverman
  • 243
  • 1
  • 7
  • 22

1 Answers1

1

Thanks everyone. I changed from htmlentities() to htmlspecialchars() and everything is fine now.

Marcus Silverman
  • 243
  • 1
  • 7
  • 22