This is required to be UTF-8 since JSON data is always UTF-8
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 1 Oct 2009 18:08:40 +0000 (12:08 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 1 Oct 2009 19:39:57 +0000 (13:39 -0600)
imp/lib/Mime/Viewer/Html.php

index bd5e4e0..f933815 100644 (file)
@@ -120,7 +120,7 @@ class IMP_Horde_Mime_Viewer_Html extends Horde_Mime_Viewer_Html
         $data['js'] = array('IMP.iframeInject("' . $uid . '", ' . Horde_Serialize::serialize($data['data'], Horde_Serialize::JSON, $this->_mimepart->getCharset()) . ')');
         $data['data'] = '<IFRAME class="htmlMsgData" id="' . $uid . '" src="javascript:false" frameborder="0"></IFRAME>' .
             Horde_Util::bufferOutput(array('Horde', 'addScriptFile'), 'imp.js', 'imp', true);
-        $data['type'] = 'text/html; charset=' . Horde_Nls::getCharset();
+        $data['type'] = 'text/html; charset=UTF-8';
 
         return array(
             $this->_mimepart->getMimeId() => $data