Correction initialisation utf8
This commit is contained in:
parent
e36a8d52dd
commit
db2238406e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user