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;
$uts=$ts;
} else {
# Bogus value; fall back to the epoch...
- wfDebug("wfTimestamp() given bogus time value.\n");
+ wfDebug("wfTimestamp() fed bogus time value: $outputtype; $ts\n");
$uts = 0;
}