I'm using codeigniter.
After running the following query:
$names = this->db->query("SELECT AES_DECRYPT(nombre,'".$key."') AS nombre FROM places")
I get the following output from var_dump($names)
[43]=>
array(1) {
["nombre"]=>
string(41) "Industriales de Campeche"
}
[44]=>
array(1) {
["nombre"]=>
string(67) "Evaristo Garc�a ESE"
}
[45]=>
array(1) {
["nombre"]=>
string(39) "San Jose Popay�n"
the result of the query on phpmyadmin looks like this:
So as you can see, the fields containing special characters are shown in it's hexadecimal representation. When i use this tool http://www.rapidtables.com/convert/number/hex-to-ascii.htm i can convert the hexadecimal fields with no problem (the special characters are shown), but the thing is i can´t make it work in codeigniter. Even though i'm using utf-8 encoding, the special characters keep appearing as �.
It's worth to say that i've had no problems before encrypting the database.