From 55b35bdd20f02ba88a791d5cf53f81e6feb695b9 Mon Sep 17 00:00:00 2001 From: Platonides Date: Wed, 16 Nov 2011 16:53:12 +0000 Subject: [PATCH] On errors not using OutputPage, Content-Type header wasn't set, although we output localised UTF-8 messaged. --- includes/Exception.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/Exception.php b/includes/Exception.php index 8c4e0a754f..08a63ee6bf 100644 --- a/includes/Exception.php +++ b/includes/Exception.php @@ -181,6 +181,7 @@ class MWException extends Exception { $wgOut->output(); } else { + header( "Content-Type: text/html; charset=utf-8" ); $hookResult = $this->runHooks( get_class( $this ) . "Raw" ); if ( $hookResult ) { die( $hookResult ); -- 2.20.1