Hello,
I used to run mysql_query(“SET NAMES ‘utf8’”); after the database connection. This is my general set up, make sure the characters are utf8 after the mysql query.
Where and how could I set up this in codeigniter configuration? So I don’t have to make this query call before each mysql query?
Or the config/database.php
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";Already did it for me. That I don’t need to call mysql_query(“SET NAMES ‘utf8’”) any more?
Thanks!