From: Chuck Hagenbuch Date: Tue, 23 Dec 2008 19:04:24 +0000 (-0500) Subject: make sure that we have a charset parameter in the db config, and default it to UTF-8 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=39b28ae807cf1593eecf2757801128a35299c07f;p=horde.git make sure that we have a charset parameter in the db config, and default it to UTF-8 --- 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;