summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-12-20 14:07:46 +0000
committerthomascube <thomas@roundcube.net>2006-12-20 14:07:46 +0000
commitb66d40776c763b0b63525b78406893ef52d42c9d (patch)
tree694abd6d4d49e0764304dd93106da702d19946a5 /program/include
parent2bca6e1da0e46f93297a7f60ff449b6c6ebac239 (diff)
Set charset to MDB2 database connection
Diffstat (limited to 'program/include')
-rwxr-xr-xprogram/include/rcube_mdb2.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/include/rcube_mdb2.inc b/program/include/rcube_mdb2.inc
index c71e723d0..47def0302 100755
--- a/program/include/rcube_mdb2.inc
+++ b/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;
}