From: Michael M Slusarz Date: Fri, 20 Aug 2010 20:33:09 +0000 (-0600) Subject: Bug #9189: The text is in the server charset, not the object charset X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=aa68398ade18b7b40f39fd913746266b9b02e633;p=horde.git Bug #9189: The text is in the server charset, not the object charset --- diff --git a/framework/Text_Filter/lib/Horde/Text/Filter/Html2text.php b/framework/Text_Filter/lib/Horde/Text/Filter/Html2text.php index cbd5362d8..3351bc59d 100644 --- a/framework/Text_Filter/lib/Horde/Text/Filter/Html2text.php +++ b/framework/Text_Filter/lib/Horde/Text/Filter/Html2text.php @@ -108,7 +108,7 @@ class Horde_Text_Filter_Html2text extends Horde_Text_Filter_Base { try { $dom = new Horde_Support_Domhtml($text, $this->_params['charset']); - $text = Horde_String::convertCharset($this->_node($dom->dom, $dom->dom), $dom->encoding, $this->_params['charset']); + $text = Horde_String::convertCharset($this->_node($dom->dom, $dom->dom), null, $this->_params['charset']); } catch (Exception $e) { $text = strip_tags(preg_replace("/\/i", "\n", $text)); }