character set conversion //IGNORE live patch
authorDomas Mituzas <midom@users.mediawiki.org>
Mon, 26 Dec 2005 13:05:20 +0000 (13:05 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Mon, 26 Dec 2005 13:05:20 +0000 (13:05 +0000)
includes/Revision.php

index 03baf4b..1a367f0 100644 (file)
@@ -473,7 +473,7 @@ class Revision {
                        # Old revisions kept around in a legacy encoding?
                        # Upconvert on demand.
                        global $wgInputEncoding, $wgContLang;
-                       $text = $wgContLang->iconv( $wgLegacyEncoding, $wgInputEncoding, $text );
+                       $text = $wgContLang->iconv( $wgLegacyEncoding, $wgInputEncoding . '//IGNORE', $text );
                }
                wfProfileOut( $fname );
                return $text;