From df22b23fa92a64277631109593016a7f7e8fd22b Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 20 Dec 2009 19:58:01 +0000 Subject: fixes #1193 - now specify charset in both metatag and http header git-svn-id: http://code.elgg.org/elgg/trunk@3774 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/page_elements/header.php | 5 ++++- views/failsafe/pageshells/pageshell.php | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/views/default/page_elements/header.php b/views/default/page_elements/header.php index 48073654c..5710d7487 100644 --- a/views/default/page_elements/header.php +++ b/views/default/page_elements/header.php @@ -46,13 +46,16 @@ END; $feedref = ""; } +// we won't trust server configuration but specify utf-8 +header('Content-type: text/html; charset=utf-8'); + $version = get_version(); $release = get_version(true); ?> - + <?php echo $title; ?> diff --git a/views/failsafe/pageshells/pageshell.php b/views/failsafe/pageshells/pageshell.php index 468e00ef1..7e9893e73 100644 --- a/views/failsafe/pageshells/pageshell.php +++ b/views/failsafe/pageshells/pageshell.php @@ -14,10 +14,15 @@ * @uses $vars['body'] The main content of the page * @uses $vars['messages'] A 2d array of various message registers, passed from system_messages() */ + +// we won't trust server configuration but specify utf-8 +header('Content-type: text/html; charset=utf-8'); + ?> <?php echo $vars['title']; ?> +