I connected to database with PDO and state "SET NAMES":
$db = new PDO('mysql:host=localhost;dbname=gs', 'root','', array(
PDO::ATTR_PERSISTENT=>true,
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'
));
My database is set for "utf8_general_ci". And, when I insert records from my site (using POST), it works. But, when I insert records using PHPMyAdmin (or Admin), encoding fails.
Inserting using INSERT queries gives me good encoding on the site, but in the database,It has all weird symbols.
What can I do to have proper encoded symbols everywhere?
I solved the “case”, but I can’t see… how 😉 I just coded everything again (since I changed the design drastically), using almost the same elements, and now it works great.