Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -213,7 +213,7 @@ |
214 | 214 | function wfMungeToUtf8( $string ) { |
215 | 215 | global $wgInputEncoding; # This is debatable |
216 | 216 | #$string = iconv($wgInputEncoding, "UTF-8", $string); |
217 | | - $string = preg_replace ( '/&#([0-9]+);/e', 'wfUtf8Sequence($1)', $string ); |
| 217 | + $string = preg_replace ( '/�*([0-9]+);/e', 'wfUtf8Sequence($1)', $string ); |
218 | 218 | $string = preg_replace ( '/&#x([0-9a-f]+);/ie', 'wfUtf8Sequence(0x$1)', $string ); |
219 | 219 | # Should also do named entities here |
220 | 220 | return $string; |