Bug #9189: The text is in the server charset, not the object charset
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 20 Aug 2010 20:33:09 +0000 (14:33 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 20 Aug 2010 20:33:09 +0000 (14:33 -0600)
framework/Text_Filter/lib/Horde/Text/Filter/Html2text.php

index cbd5362..3351bc5 100644 (file)
@@ -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("/\<br\s*\/?\>/i", "\n", $text));
         }