Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Add charset config
Browse files Browse the repository at this point in the history
  • Loading branch information
ex-f committed May 20, 2014
1 parent 9418d0a commit d41c911
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Doctrine/DBAL/Driver/PDODblib/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d41c911

Please sign in to comment.