From: hickert Date: Mon, 28 Nov 2005 12:00:46 +0000 (+0000) Subject: Fixed encoding X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1699a6adc5f975962ee8f5f7db40baaeabbcf985;p=gosa.git Fixed encoding git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2102 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/helpviewer.php b/html/helpviewer.php index f307564c3..44377afbd 100644 --- a/html/helpviewer.php +++ b/html/helpviewer.php @@ -186,7 +186,7 @@ if(isset($_POST['search'])){ $header= "".$smarty->fetch(get_template_path('headers.tpl')); /* I don't know why, but we must use utf8_encode to avoid dispplay errors */ - $display= utf8_encode( $header.$smarty->fetch(get_template_path('help.tpl'))); + $display= ( $header.$smarty->fetch(get_template_path('help.tpl'))); echo $display; }elseif(((empty($helpdir)))||($helpdir=="/")){ /* Generate Index and display it */ diff --git a/include/functions_helpviewer.inc b/include/functions_helpviewer.inc index 6de1627ca..579ede331 100644 --- a/include/functions_helpviewer.inc +++ b/include/functions_helpviewer.inc @@ -86,7 +86,7 @@ function genIndex($arr) $str .= "

"._($name)." ("._("No help available for this plugin.").")

"; } } - return utf8_decode($str); + return (utf8_decode($str)); } @@ -452,14 +452,14 @@ function createResultEntry($entry,$res,$name,$max)
- ".$entry['headline']." -".htmlentities(substr(strip_tags($entry['content']),0,120))."... + ".utf8_encode($entry['headline'])." -".utf8_encode(substr(strip_tags($entry['content']),0,120))."... ".progressbar($percentage,50,8)."
- ".htmlentities(sprintf(_("%s%% hit rate in file %s"),$percentage,$name))." + ".(sprintf(_("%s%% hit rate in file %s"),$percentage,$name))."