summaryrefslogtreecommitdiffstats
path: root/lib/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/db.php')
-rw-r--r--lib/db.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/db.php b/lib/db.php
index 347deac8519..9699b216f6f 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -292,8 +292,10 @@ class OC_DB {
'username' => $user,
'password' => $pass,
'hostspec' => $host,
- 'database' => $name
- );
+ 'database' => $name,
+ 'charset' => 'UTF-8'
+ );
+ $options['portability'] = $options['portability'] - MDB2_PORTABILITY_EMPTY_TO_NULL;
break;
default:
return false;