From 1699a6adc5f975962ee8f5f7db40baaeabbcf985 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 28 Nov 2005 12:00:46 +0000 Subject: [PATCH] Fixed encoding git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2102 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/helpviewer.php | 2 +- include/functions_helpviewer.inc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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) -- 2.30.2
- ".$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))."