Index: trunk/core/kernel/db/db_connection.php =================================================================== diff -u -N -r8441 -r8598 --- trunk/core/kernel/db/db_connection.php (.../db_connection.php) (revision 8441) +++ trunk/core/kernel/db/db_connection.php (.../db_connection.php) (revision 8598) @@ -181,6 +181,11 @@ if (defined('DBG_SQL_MODE')) { $this->Query('SET sql_mode = \''.DBG_SQL_MODE.'\''); } + + if (defined('SQL_COLLATION') && defined('SQL_CHARSET')) { + $this->Query('SET NAMES \''.SQL_CHARSET.'\' COLLATE \''.SQL_COLLATION.'\''); + } + $this->setDB($db); $this->showError(); }