make sure that we have a charset parameter in the db config, and default it to UTF-8
authorChuck Hagenbuch <chuck@horde.org>
Tue, 23 Dec 2008 19:04:24 +0000 (14:04 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Tue, 23 Dec 2008 19:04:24 +0000 (14:04 -0500)
framework/Db/lib/Horde/Db/Adapter/Abstract.php

index d25e2a4..46fd4e9 100644 (file)
@@ -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;