How to make PDO adapter run SET NAMES utf8 each time I connect, In ZendFramework. I am using an INI file to save the adapter config data. what entries should I add there?
In your bootstrap file...
$db = Zend_Db::factory($adapter, $config); $db->query("SET NAMES 'utf8'");
then you save this instance in your registry
Zend_Registry::set('db', $db);