summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-12-20 14:07:46 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-12-20 14:07:46 +0000
commit6b3b8874f2c160577099e653567212fc8015683a (patch)
treebec86545c1db37c83d8638f7d71ae0bed0ac3e2a
parentff73382ab042bdd3b52918c46688e2ec04b96789 (diff)
Set charset to MDB2 database connection
git-svn-id: https://svn.roundcube.net/trunk@420 208e9e7b-5314-0410-a742-e7e81cd9613c
-rwxr-xr-xroundcubemail/program/include/rcube_mdb2.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_mdb2.inc b/roundcubemail/program/include/rcube_mdb2.inc
index c71e723d0..47def0302 100755
--- a/roundcubemail/program/include/rcube_mdb2.inc
+++ b/roundcubemail/program/include/rcube_mdb2.inc
@@ -104,13 +104,14 @@ class rcube_db
raise_error(array('code' => 500, 'type' => 'db', 'line' => __LINE__, 'file' => __FILE__,
'message' => $dbh->getMessage()), TRUE, FALSE);
}
-
else if ($this->db_provider=='sqlite')
{
$dsn_array = MDB2::parseDSN($dsn);
if (!filesize($dsn_array['database']) && !empty($this->sqlite_initials))
$this->_sqlite_create_database($dbh, $this->sqlite_initials);
}
+ else
+ $dbh->setCharset('utf8');
return $dbh;
}