From: Chuck Hagenbuch Date: Wed, 24 Dec 2008 21:28:31 +0000 (-0500) Subject: convert iso8859-1 to latin1 for mysql X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e22efccadf57d4a9ed699677d837c71dea2f662e;p=horde.git convert iso8859-1 to latin1 for mysql --- diff --git a/framework/Db/lib/Horde/Db/Adapter/Mysql/Schema.php b/framework/Db/lib/Horde/Db/Adapter/Mysql/Schema.php index 3f370b487..11a70cdf4 100644 --- a/framework/Db/lib/Horde/Db/Adapter/Mysql/Schema.php +++ b/framework/Db/lib/Horde/Db/Adapter/Mysql/Schema.php @@ -163,6 +163,9 @@ class Horde_Db_Adapter_Mysql_Schema extends Horde_Db_Adapter_Abstract_Schema public function _mysqlCharsetName($charset) { $charset = strtolower(preg_replace('/[^a-zA-Z0-9]/', '', $charset)); + if ($charset == 'iso88591') { + $charset = 'latin1'; + } $validCharsets = $this->selectValues('SHOW CHARACTER SET'); if (!in_array($charset, $validCharsets)) { throw new Horde_Db_Exception($charset . ' is not supported by MySQL');