From 893721a6b61082c7b17344e6c8eb8c7adc60c3e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Mon, 20 Apr 2009 07:20:43 +0000 Subject: [PATCH] =?UTF-8?q?fix=20strtoupper=20f=C3=BCr=20umlaute?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/functions.inc.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/include/functions.inc.php b/include/functions.inc.php index 038bd7686..e836e5638 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -310,18 +310,7 @@ function utf8_strlen($str) // **************************************************************** function strtoupperFULL($str) { - // convert to entities - $subject = htmlentities($str,ENT_QUOTES); - $pattern = '/&([a-z])(uml|acute|circ'; - $pattern.= '|tilde|ring|elig|grave|slash|horn|cedil|th);/e'; - $replace = "'&'.strtoupper('\\1').'\\2'.';'"; - $result = preg_replace($pattern, $replace, $subject); - // convert from entities back to characters - $htmltable = get_html_translation_table(HTML_ENTITIES); - foreach($htmltable as $key => $value) { - $result = ereg_replace(addslashes($value),$key,$result); - } - return(strtoupper($result)); + return(mb_strtoupper($str, "iso-8859-15")); } // ****************************************************************