From: hickert Date: Wed, 14 Dec 2005 08:28:17 +0000 (+0000) Subject: fixed smarty encoding errors X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=990296b6cd6c1b663589de0788f752c677918739;p=gosa.git fixed smarty encoding errors git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2309 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/main.php b/html/main.php index 8c9e1bd48..7b0f3f61f 100644 --- a/html/main.php +++ b/html/main.php @@ -319,7 +319,7 @@ $display= $header.$smarty->fetch(get_template_path('framework.tpl')); */ if ((isset($config->data['MAIN']['W3CTEST']) && preg_match('/true/i', $config->data['MAIN']['W3CTEST']))&&(!empty($display))) { - tidy_parse_string($display); + tidy_parse_string(utf8_decode($display)); $err = nl2br(htmlentities(tidy_get_error_buffer())); if($err){ @@ -331,6 +331,10 @@ if ((isset($config->data['MAIN']['W3CTEST']) && preg_match('/true/i', $config->d } /* Show page... */ +$f = fopen("/tmp/OgerMonokel.html","w+"); +fwrite($f,$display); +fclose($f); + echo $display; /* Save plist */