diff options
-rw-r--r-- | src/Psecio/Gatekeeper/DataSource/Mysql.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Psecio/Gatekeeper/DataSource/Mysql.php b/src/Psecio/Gatekeeper/DataSource/Mysql.php index 22d0622..5a1403a 100644 --- a/src/Psecio/Gatekeeper/DataSource/Mysql.php +++ b/src/Psecio/Gatekeeper/DataSource/Mysql.php @@ -32,7 +32,7 @@ class Mysql extends \Psecio\Gatekeeper\DataSource public function buildPdo(array $config) { return new \PDO( - 'mysql:dbname='.$config['name'].';host='.$config['host'], + 'mysql:dbname='.$config['name'].';host='.$config['host'].';charset=utf8', $config['username'], $config['password'] ); } @@ -295,4 +295,4 @@ class Mysql extends \Psecio\Gatekeeper\DataSource { return $this->lastError; } -}
\ No newline at end of file +} |