From aa68398ade18b7b40f39fd913746266b9b02e633 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 20 Aug 2010 14:33:09 -0600 Subject: [PATCH] Bug #9189: The text is in the server charset, not the object charset --- framework/Text_Filter/lib/Horde/Text/Filter/Html2text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.11.0