commit 920779ff4f8a63677acbc89d2636b03a9567688b parent f5883c0aa191003ad3d82f46a25cedf313290d50 Author: dankert <devnull@localhost> Date: Wed, 1 Apr 2009 01:26:23 +0200 Bugfix für Zeichensätze ungleich ISO-8859-1 und UTF-8 Diffstat:
functions/language.inc.php | | | 9 | ++++++--- |
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/functions/language.inc.php b/functions/language.inc.php @@ -95,13 +95,16 @@ function encodeHtml($text) } else { + return $text; + // TODO: Was tun mit ISO-8859-5 (kyryllisch)? + $t2 = ''; - for ( $i=0;$i<strlen($tmp_text);$i++) + for ( $i=0;$i<strlen($text);$i++) { - $o = ord($tmp_text[$i]); + $o = ord($text[$i]); if ( $o <= 127 ) - $t2 .= $tmp_text[$i]; + $t2 .= $text[$i]; else $t2 .= '&#'.$o.';'; }