* native eol style
[lhc/web/wiklou.git] / thumb.php
index cad4a1b..42bc549 100644 (file)
--- a/thumb.php
+++ b/thumb.php
@@ -5,6 +5,7 @@
  * If the file exists, we make do with abridged MediaWiki initialisation.
  */
 define( 'MW_NO_SETUP', 1 );
+define( 'MW_NO_OUTPUT_COMPRESSION', 1 );
 require_once( './includes/WebStart.php' );
 wfProfileIn( 'thumb.php' );
 wfProfileIn( 'thumb.php-start' );
@@ -74,7 +75,7 @@ if ( $thumb && $thumb->path ) {
        $badtitle = wfMsg( 'badtitle' );
        $badtitletext = wfMsg( 'badtitletext' );
        header( 'Cache-Control: no-cache' );
-       header( 'Content-Type: text/html' );
+       header( 'Content-Type: text/html; charset=utf-8' );
        echo "<html><head>
        <title>$badtitle</title>
        <body>