diff --git a/typo3/template.php b/typo3/template.php index 5730383b6ca0a68571d4cbcefc01bae6172953c1..1a58d1a19008d3654d00c9a155cbfc8d4085fcad 100755 --- a/typo3/template.php +++ b/typo3/template.php @@ -563,9 +563,13 @@ class template { * @see endPage() */ function startPage($title) { + // Get META tag containing the currently selected charset for backend output. The function sets $this->charSet. $charSet = $this->initCharset(); $generator = $this->generator(); - + + // Send HTTP header for selected charset. Added by Robert Lemke 23.10.2003 + header ('Content-Type:text/html;charset='.$this->charset); + switch($this->docType) { case 'xhtml_strict': $headerStart= '<?xml version="1.0" encoding="'.$this->charset.'"?> @@ -1477,4 +1481,4 @@ $LANG->init($BE_USER->uc['lang']); // The template is loaded // ****************************** $TBE_TEMPLATE = t3lib_div::makeInstance('template'); -?> +?> \ No newline at end of file