Thursday 27 December 2018

php - Webpage encoding utf-8

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.

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...