I have an encoding problem.
The table uses utf8_general_ci
, the php header header("Content-Type: text/html; charset=utf-8");
and in the html the meta tag <meta charset="utf-8">
is set. BOM is set right. The german chars are displayed right in phpmyadmin.
But when I output it the encoding results: Sask���
Any other idea what I can do?
This solves the problem
mysqli_query($link, "SET NAMES 'utf8'");
mysqli_query($link, "SET CHARACTER SET 'utf8'");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With