From: Michael M Slusarz Date: Thu, 1 Oct 2009 18:08:40 +0000 (-0600) Subject: This is required to be UTF-8 since JSON data is always UTF-8 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a8d1dd3e4cefb02a68d3e3f317933901131c9cdc;p=horde.git This is required to be UTF-8 since JSON data is always UTF-8 --- diff --git a/imp/lib/Mime/Viewer/Html.php b/imp/lib/Mime/Viewer/Html.php index bd5e4e05a..f9338155b 100644 --- a/imp/lib/Mime/Viewer/Html.php +++ b/imp/lib/Mime/Viewer/Html.php @@ -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'] = '' . 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