Hi all,
I was trying to set the connection character set to utf8 in following
way (code bellow) without success:

$adapter = new Adapter(array(
    'driver' => 'Pdo_Mysql',
    'database' => 'test',
    'username' => 'root',
    'password' => 'mypass',
    'charset ' => 'utf8',
));

Finally I did that bellow to get this working:

$adapter = new Adapter(array(
    'driver' => 'Pdo_Mysql',
    'database' => 'test',
    'username' => 'root',
    'password' => 'mypass',
));
$connection = $adapter->getDriver()->getConnection();
$connection->execute('SET NAMES utf8');

It should work with first example, any idea why it doesn't? What's wrong?

Reply via email to