summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
authorUrban Müller2010-02-19 15:21:05 +0000
committerUrban Müller2010-02-19 15:21:05 +0000
commit40e91838f56c0c7ce250b757fe7794598f98330c (patch)
tree894092986ddf588bb043da3be6ceec98a5285bc6 /it_html.class
parent55026001ce09c4120a99a6142fa56dc6c7556da9 (diff)
downloaditools-40e91838f56c0c7ce250b757fe7794598f98330c.tar.gz
itools-40e91838f56c0c7ce250b757fe7794598f98330c.tar.bz2
itools-40e91838f56c0c7ce250b757fe7794598f98330c.zip
guarantee correct encoding for env
Diffstat (limited to 'it_html.class')
-rw-r--r--it_html.class2
1 files changed, 2 insertions, 0 deletions
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');