From 709dbd82a60363555b613b381f73d942f9fdbcc4 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Sat, 16 Jun 2012 16:58:55 +0200 Subject: [PATCH] Set default charset to utf-8. --- lib/db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db.php b/lib/db.php index bcc8657b4a..a0ad499b60 100644 --- a/lib/db.php +++ b/lib/db.php @@ -120,7 +120,7 @@ class OC_DB { }else{ $dsn='mysql:dbname='.$name.';host='.$host; } - $opts[PDO::MYSQL_ATTR_INIT_COMMAND] = "SET NAMES 'UTF8'"; + $opts[PDO::MYSQL_ATTR_INIT_COMMAND] = "SET NAMES 'UTF8'; SET CHARACTER SET 'UTF8';"; break; case 'pgsql': if($port){