Special Characters are not showing correctly

I had a similar problem and i needed to add “charset=utf8mb4” into my connection string when connecting to the database and that fixed it.

My php looked like this

new PDO("mysql:host=$servername;dbname=$dbname;charset=utf8mb4", $username, $password);

Might be worth a try.

7 Likes