Character encoding problem after changing from PHP 5.6 to PHP 7
After changing PHP version on my site diginytt.no from 5.6 to 7.0.23, I get broken special characters (Norwegian letters æøå) in both title and excerpt when importing posts to my MYSQL database from other sites/RSS feeds. When diginytt.no is running 5.6 I have no issues.
Look at this image from the front page of diginytt.no:
http://hesselberg.us/chars.jpg
To the left: This is how it looks when importing a post where diginytt.no has PHP7 activated.
To the right: This is how it looks when importing a post where diginytt.no has PHP5 (with correct character å).
How can I fix this? I want to upgrade my diginytt.no site to PHP7, but the characters must be shown correctly while importing feeds…
Look at this image from the front page of diginytt.no:
http://hesselberg.us/chars.jpg
To the left: This is how it looks when importing a post where diginytt.no has PHP7 activated.
To the right: This is how it looks when importing a post where diginytt.no has PHP5 (with correct character å).
How can I fix this? I want to upgrade my diginytt.no site to PHP7, but the characters must be shown correctly while importing feeds…