From d30cd3f53323bc9b480547485e91858ddc97c4b4 Mon Sep 17 00:00:00 2001 From: Robert Lemke <robert.lemke@typo3.org> Date: Thu, 23 Oct 2003 13:09:32 +0000 Subject: [PATCH] Added HTTP header output for charset encoding (utf-8 issue). Modified function: startPage git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@34 709f56b5-9817-0410-a4d7-c38de5d9e867 --- typo3/template.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/typo3/template.php b/typo3/template.php index 5730383b6ca0..1a58d1a19008 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 -- GitLab