Skip to content
Snippets Groups Projects
Commit 284fefee authored by Tim Steiner's avatar Tim Steiner
Browse files

Explicitly set UTF8 for the database connection

parent b9adaf9c
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@ $db_config = array('host' => $db_host,
'dbname' => $db_name);
$db = Nmc_Db::factory('PDO_MYSQL', $db_config);
$db->query('SET NAMES utf8');
$db->getProfiler()->setEnabled(true);
Zend_Db_Table::setDefaultAdapter($db);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment