From 40e91838f56c0c7ce250b757fe7794598f98330c Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 19 Feb 2010 15:21:05 +0000 Subject: guarantee correct encoding for env --- it_html.class | 2 ++ 1 file changed, 2 insertions(+) diff --git a/it_html.class b/it_html.class index e628a23..c9e51a5 100644 --- a/it_html.class +++ b/it_html.class @@ -173,6 +173,8 @@ function head($args = array()) header("Content-Type: " . $p['content-type']); $js = $p['jsenv'] ? "var env = " . itjs::serialize($p['jsenv']) . ";\n" : ''; + if ($GLOBALS['it_html']->p['charset'] == "iso-8859-1") + $js = it_html::latinize($js); $js .= $this->_itjs($p['jsinline'], 'inline'); -- cgit v1.2.3