From 39b28ae807cf1593eecf2757801128a35299c07f Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Tue, 23 Dec 2008 14:04:24 -0500 Subject: [PATCH] make sure that we have a charset parameter in the db config, and default it to UTF-8 --- framework/Db/lib/Horde/Db/Adapter/Abstract.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/framework/Db/lib/Horde/Db/Adapter/Abstract.php b/framework/Db/lib/Horde/Db/Adapter/Abstract.php index d25e2a48e..46fd4e9a5 100644 --- 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; -- 2.11.0