diff options
author | Chris Cornutt <enygma@phpdeveloper.org> | 2015-07-17 14:31:39 -0500 |
---|---|---|
committer | Chris Cornutt <enygma@phpdeveloper.org> | 2015-07-17 14:31:39 -0500 |
commit | 5273cb82b3d43176ed040097ecba32dfc90c5d7b (patch) | |
tree | 302b6e62eaaa3bf2c5ab5664924b0c78fb28d918 /src | |
parent | 21b7f39e87fd6b46b97892db145aba0c5072f9b7 (diff) | |
parent | 3d4af309a0f4228aa757913b2a42189401f728cc (diff) | |
download | gatekeeper-5273cb82b3d43176ed040097ecba32dfc90c5d7b.zip gatekeeper-5273cb82b3d43176ed040097ecba32dfc90c5d7b.tar.gz gatekeeper-5273cb82b3d43176ed040097ecba32dfc90c5d7b.tar.bz2 |
Merge pull request #25 from Ser5/master
Added "charset=utf8" to PDO initialization
Diffstat (limited to 'src')
-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 +} |