I have recently updated my PHP-Webspace to 5.6 (from 5.5) and something strange happened. My website suddenly displays UTF-8 characters incorrectly eventhough I am using the Meta Tag <meta charset="utf-8">
and following line in my .htaccess file AddDefaultCharset utf-8
.
After inserting following line in my PHP-Script everything worked again header('Content-Type: charset=utf-8');
.
This both happened on my Webspace (where I don't have access to the php.ini file) and my local server. As I am also using other PHP scripts, I don't want to insert header('Content-Type: charset=utf-8');
into all config files...
What could be the cause?