When I execute the UPDATE statement in PHP, in order to save the changes in the database (PHPMyAdmin), the information is stored with rare characters, that is, the letter ñ or the accents are not recognized ....
The ñ appears like this: years The accents appear like this: region:
I must add some sentence and / or prefix when writing UPDATE SET_name SET ... Why does that happen? In my connection to BD, I have this:
$conexion = new PDO('mysql:host=localhost;dbname='.$bd_config['basedatos'], $bd_config['usuario'], $bd_config['pass'], array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\''));
And even then, it is respected ......
It is worth mentioning that the collation, both for my tables and for the database in general, is UTF8_UNICODE_CI