diff options
author | thomascube <thomas@roundcube.net> | 2006-12-20 14:07:46 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2006-12-20 14:07:46 +0000 |
commit | b66d40776c763b0b63525b78406893ef52d42c9d (patch) | |
tree | 694abd6d4d49e0764304dd93106da702d19946a5 | |
parent | 2bca6e1da0e46f93297a7f60ff449b6c6ebac239 (diff) |
Set charset to MDB2 database connection
-rwxr-xr-x | program/include/rcube_mdb2.inc | 3 |
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; } |