Bug #8868: Fix charset when converting html -> text
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 17 Feb 2010 06:46:37 +0000 (23:46 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 17 Feb 2010 06:46:37 +0000 (23:46 -0700)
imp/compose.php

index a032c7c..edb8fdf 100644 (file)
@@ -626,7 +626,7 @@ if (!is_null($oldrtemode) && ($oldrtemode != $rtemode)) {
                            array('<p>&nbsp;</p>', '<p class="imp-signature"><!--begin_signature-->' . $imp_compose->text2html($sig) . '<!--end_signature--></p>'),
                            $msg);
     } else {
-        $msg = Horde_Text_Filter::filter($msg, 'html2text', array('charset' => $charset, 'wrap' => false));
+        $msg = Horde_Text_Filter::filter($msg, 'html2text', array('charset' => Horde_Nls::getCharset(), 'wrap' => false));
     }
 }