From: Brion Vibber Date: Mon, 1 Dec 2003 21:29:59 +0000 (+0000) Subject: Add xml header (redundant but nice) and correct xml:lang tag X-Git-Tag: 1.1.0~37 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=b939839e4fc27f6a18a18aa2f8234778742877e6;p=lhc%2Fweb%2Fwiklou.git Add xml header (redundant but nice) and correct xml:lang tag --- diff --git a/includes/SpecialExport.php b/includes/SpecialExport.php index 4b8a2c89ea..47882990a7 100644 --- a/includes/SpecialExport.php +++ b/includes/SpecialExport.php @@ -33,7 +33,8 @@ function wfSpecialExport( $page = "" ) { function pages2xml( $pages, $curonly = false ) { global $wgLanguageCode, $wgInputEncoding, $wgLang; - $xml = "\n"; + $xml = "<" . "?xml version=\"1.0\" encoding=\"UTF-8\" ?" . ">\n" . + "\n"; foreach( $pages as $page ) { $xml .= page2xml( $page, $curonly ); }