From 3034363c136d2b3911fbf1ceffbc0a91853bb5e9 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Wed, 16 Jun 2004 06:39:18 +0000 Subject: [PATCH] add header for content type --- phpgwapi/addressbook.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/phpgwapi/addressbook.php b/phpgwapi/addressbook.php index bc810ed92a..3af47d7802 100644 --- a/phpgwapi/addressbook.php +++ b/phpgwapi/addressbook.php @@ -18,9 +18,12 @@ 'currentapp' => 'home', // resolves to phpgwapi, which is not allowed itself 'enable_nextmatchs_class' => True ); - + include('../header.inc.php'); - + + // 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()); + $GLOBALS['phpgw_info']['flags']['currentapp'] = 'addressbook'; include('templates/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['template_set'].'/head.inc.php');