Skip to content

Commit

Permalink
Merge pull request #2142 from InformatiqueProg/update-sql-utf8
Browse files Browse the repository at this point in the history
Force utf8 on thelia update
  • Loading branch information
gillesbourgeat committed May 13, 2016
2 parents 73f4f98 + 676e6ce commit 35fb5bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/lib/Thelia/Install/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ public function __construct($usePropel = true)
$this->connection = new \PDO(
$dbConfig['dsn'],
$dbConfig['user'],
$dbConfig['password']
$dbConfig['password'],
[PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'UTF8'"]
);
} catch (\PDOException $ex) {
throw new UpdateException('Wrong connection information' . $ex->getMessage());
Expand Down

0 comments on commit 35fb5bc

Please sign in to comment.