Skip to content
Snippets Groups Projects
Commit d30cd3f5 authored by Robert Lemke's avatar Robert Lemke
Browse files

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
parent 978fa3ec
Branches
Tags
No related merge requests found
......@@ -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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment