From f6dbe824d9e365d4b2e60b7366d316558739c188 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 2 Sep 2009 06:34:07 +0000 Subject: [PATCH] Revert r52158 per CR: was attempting to convert text to UTF-8 that was already UTF-8, this would have resulted in mojibake. --- includes/DjVuImage.php | 1 - 1 file changed, 1 deletion(-) diff --git a/includes/DjVuImage.php b/includes/DjVuImage.php index 1b8c4e4c10..406878d076 100644 --- a/includes/DjVuImage.php +++ b/includes/DjVuImage.php @@ -250,7 +250,6 @@ class DjVuImage { $txt = wfShellExec( $cmd, $retval ); wfProfileOut( 'djvutxt' ); if( $retval == 0) { - $txt = utf8_encode($txt); $txt = htmlspecialchars($txt); $txt = preg_replace( "/\((page\s[\d-]*\s[\d-]*\s[\d-]*\s[\d-]*\s*\"([^<]*?)\"\s*|)\)/s", "", $txt ); $txt = "\n\n\n" . $txt . "\n\n"; -- 2.20.1