add a content-type header to overwrite an existing default charset in apache (AddDefaultCharset directiv)

This commit is contained in:
Ralf Becker 2004-06-10 07:13:37 +00:00
parent cf19aae187
commit dc2d527ba4

View File

@ -1189,6 +1189,9 @@
*/
function phpgw_header()
{
// add a content-type header to overwrite an existing default charset in apache (AddDefaultCharset directiv)
header('Content-type: text/html; charset='.$GLOBALS['phpgw']->translation->charset());
include(PHPGW_INCLUDE_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info']['server']['template_set']
. '/head.inc.php');
$this->navbar(False);