From: Mark A. Hershberger Date: Wed, 14 Jul 2010 17:34:18 +0000 (+0000) Subject: * revert r61258 X-Git-Tag: 1.31.0-rc.0~36150 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=af63bc308add17a186688cbd77acfe3ca639b0c7;p=lhc%2Fweb%2Fwiklou.git * revert r61258 * check if iconv extension is loaded and, if so, use it in UtfNormal::cleanUp() --- diff --git a/includes/DjVuImage.php b/includes/DjVuImage.php index f14d8d64cb..842b3a9e1b 100644 --- a/includes/DjVuImage.php +++ b/includes/DjVuImage.php @@ -251,13 +251,7 @@ class DjVuImage { wfProfileOut( 'djvutxt' ); if( $retval == 0) { # Get rid of invalid UTF-8, strip control characters - if( is_callable( 'iconv' ) ) { - wfSuppressWarnings(); - $txt = iconv( "UTF-8","UTF-8//IGNORE", $txt ); - wfRestoreWarnings(); - } else { - $txt = UtfNormal::cleanUp( $txt ); - } + $txt = UtfNormal::cleanUp( $txt ); $txt = preg_replace( "/[\013\035\037]/", "", $txt ); $reg = <<