If you have troubles with your UTF-8 encoded tables and CakePHP, simply add this line in /app/config/database.php
‘encoding’ => ‘utf8′
Your DATABASE_CONFIG class should look like this :
class DATABASE_CONFIG {
var $default = array(
’driver’ => ‘mysql’,
’persistent’ => false,
’host’ => ‘localhost’,
’login’ => ‘user’,
’password’ => ‘passwd’,
’database’ => ‘db_name’,
’prefix’ => ”,
’encoding’ => ‘utf8′
);
}
Great !
