From 5140181bba25990a0089f7fe52e5a6ca0e744402 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 15 Jun 2004 08:03:15 +0000 Subject: [PATCH] charset header to overwrite apaches AddDefaultCharset --- phpgwapi/inc/class.setup_html.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phpgwapi/inc/class.setup_html.inc.php b/phpgwapi/inc/class.setup_html.inc.php index 2553fd711f..089b975e15 100644 --- a/phpgwapi/inc/class.setup_html.inc.php +++ b/phpgwapi/inc/class.setup_html.inc.php @@ -113,6 +113,9 @@ function show_header($title='',$nologoutbutton=False, $logoutfrom='config', $configdomain='') { + // add a content-type header to overwrite an existing default charset in apache (AddDefaultCharset directiv) + header('Content-type: text/html; charset='.lang('charset')); + $GLOBALS['setup_tpl']->set_var('charset',lang('charset')); $style = array( 'th_bg' => '#486591',