From c31397c9fe4b5cf5c28790c161a75b0f40b9a214 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 21 Apr 2005 06:20:10 +0000 Subject: [PATCH] * (bug 1636) Refs like ţ were misinterpreted as octal in some places --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 6535669bfc..f50ce44ed5 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -213,7 +213,7 @@ function wfUtf8Sequence( $codepoint ) { function wfMungeToUtf8( $string ) { global $wgInputEncoding; # This is debatable #$string = iconv($wgInputEncoding, "UTF-8", $string); - $string = preg_replace ( '/&#([0-9]+);/e', 'wfUtf8Sequence($1)', $string ); + $string = preg_replace ( '/�*([0-9]+);/e', 'wfUtf8Sequence($1)', $string ); $string = preg_replace ( '/&#x([0-9a-f]+);/ie', 'wfUtf8Sequence(0x$1)', $string ); # Should also do named entities here return $string; -- 2.20.1