note 90444 deleted from ref.pdo-mysql by joey

From: Date: Wed, 31 Oct 2012 06:37:36 +0000
Subject: note 90444 deleted from ref.pdo-mysql by joey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191612@lists.php.net to get a copy of this message
Note Submitter: Davy Defaud ---- This is the way to force mysql PDO driver to use UTF-8 for the connection : <?php $pdo = new PDO( 'mysql:host=hostname;dbname=defaultDbName', 'username', 'password', array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8") ); ?>

« previous php.notes (#191612) next »