Skip to content
Snippets Groups Projects
Commit 709dbd82 authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

Set default charset to utf-8.

parent 31ec93bd
No related branches found
No related tags found
No related merge requests found
......@@ -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){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment