projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
030998e
)
make sure that we have a charset parameter in the db config, and default it to UTF-8
author
Chuck Hagenbuch
<chuck@horde.org>
Tue, 23 Dec 2008 19:04:24 +0000
(14:04 -0500)
committer
Chuck Hagenbuch
<chuck@horde.org>
Tue, 23 Dec 2008 19:04:24 +0000
(14:04 -0500)
framework/Db/lib/Horde/Db/Adapter/Abstract.php
patch
|
blob
|
history
diff --git
a/framework/Db/lib/Horde/Db/Adapter/Abstract.php
b/framework/Db/lib/Horde/Db/Adapter/Abstract.php
index
d25e2a4
..
46fd4e9
100644
(file)
--- a/
framework/Db/lib/Horde/Db/Adapter/Abstract.php
+++ b/
framework/Db/lib/Horde/Db/Adapter/Abstract.php
@@
-109,6
+109,11
@@
abstract class Horde_Db_Adapter_Abstract
$this->_logger = new Horde_Support_Stub;
}
+ // Default to UTF-8
+ if (!isset($config['charset'])) {
+ $config['charset'] = 'UTF-8';
+ }
+
$this->_config = $config;
$this->_runtime = 0;