From d41c91158120562d0bb7fb9b156e6d3bdff0e947 Mon Sep 17 00:00:00 2001 From: "daisuke.toshinai" Date: Tue, 20 May 2014 15:43:36 +0900 Subject: [PATCH] Add charset config --- Doctrine/DBAL/Driver/PDODblib/Driver.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doctrine/DBAL/Driver/PDODblib/Driver.php b/Doctrine/DBAL/Driver/PDODblib/Driver.php index f484886..3bf599f 100644 --- a/Doctrine/DBAL/Driver/PDODblib/Driver.php +++ b/Doctrine/DBAL/Driver/PDODblib/Driver.php @@ -56,6 +56,11 @@ private function _constructPdoDsn(array $params) { if (isset($params['dbname'])) { $dsn .= ';dbname=' . $params['dbname']; } + + if (isset($params['charset'])) { + $dsn .= ';charset=' . $params['charset']; + } + return $dsn; }