diff options
author | Urban Müller | 2010-02-19 15:21:05 +0000 |
---|---|---|
committer | Urban Müller | 2010-02-19 15:21:05 +0000 |
commit | 40e91838f56c0c7ce250b757fe7794598f98330c (patch) | |
tree | 894092986ddf588bb043da3be6ceec98a5285bc6 | |
parent | 55026001ce09c4120a99a6142fa56dc6c7556da9 (diff) | |
download | itools-40e91838f56c0c7ce250b757fe7794598f98330c.tar.gz itools-40e91838f56c0c7ce250b757fe7794598f98330c.tar.bz2 itools-40e91838f56c0c7ce250b757fe7794598f98330c.zip |
guarantee correct encoding for env
-rw-r--r-- | it_html.class | 2 |
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'); |