Correction initialisation utf8

This commit is contained in:
Michael RICOIS 2012-01-15 21:27:05 +00:00
parent e36a8d52dd
commit db2238406e

View File

@ -21,11 +21,13 @@ class EnvoiController extends Zend_Controller_Action
//Récupérer les clients
$dbConfig = array(
'host' => MYSQL_HOST,
'port' => MYSQL_PORT,
'username' => MYSQL_USER,
'password' => MYSQL_PASS,
'dbname' => MYSQL_DEFAULT_DB,
'host' => MYSQL_HOST,
'port' => MYSQL_PORT,
'username' => MYSQL_USER,
'password' => MYSQL_PASS,
'dbname' => MYSQL_DEFAULT_DB,
//'driver_options' => array(MYSQLI_INIT_COMMAND => 'SET NAMES UTF8;'),
'driver_options' => array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES UTF8;')
);
$sqlmetier = Zend_Db::factory('PDO_MYSQL', $dbConfig);
$sql = $sqlmetier->select()