Index: branches/5.2.x/core/kernel/application.php =================================================================== diff -u -N -r15073 -r15129 --- branches/5.2.x/core/kernel/application.php (.../application.php) (revision 15073) +++ branches/5.2.x/core/kernel/application.php (.../application.php) (revision 15129) @@ -1,6 +1,6 @@ HTML = ob_get_clean() . $this->HTML; } + $language =& $this->recallObject('lang.current'); + /* @var $language LanguagesItem */ + + // don't replace header if some tag (e.g. XMLTemplate) already set it to something else + header('Content-type: text/html; charset=' . $language->GetDBField('Charset'), false); + if ( $this->UseOutputCompression() ) { $compression_level = $this->ConfigValue('OutputCompressionLevel');