From 34645dd6e8291caa9c1538715783b971b7cfa24d Mon Sep 17 00:00:00 2001 From: mensonge Date: Thu, 22 Jan 2009 15:45:32 +0000 Subject: [PATCH] Interface Fix: improve utf-8 behaviour git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@240 b3834d28-1941-0410-a4f8-b48e95affb8f --- ajax/getlinkedtags.php | 2 -- ajax/gettags.php | 2 -- header.inc.php | 3 +++ 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ajax/getlinkedtags.php b/ajax/getlinkedtags.php index 4a3543f..c4110a2 100644 --- a/ajax/getlinkedtags.php +++ b/ajax/getlinkedtags.php @@ -19,8 +19,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -header('Content-Type: text/html; charset=utf-8'); - /* Return a json file with list of linked tags */ require_once('../header.inc.php'); diff --git a/ajax/gettags.php b/ajax/gettags.php index b924ac3..7b8b33a 100644 --- a/ajax/gettags.php +++ b/ajax/gettags.php @@ -19,8 +19,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -header('Content-Type: text/html; charset=utf-8'); - /* Return a json file with list of tags according to current user and sort by popularity*/ require_once('../header.inc.php'); diff --git a/header.inc.php b/header.inc.php index 87952f6..cae71f4 100644 --- a/header.inc.php +++ b/header.inc.php @@ -48,4 +48,7 @@ $templateservice =& ServiceFactory::getServiceInstance('TemplateService'); $tplVars = array(); $tplVars['currentUser'] = $currentUser; $tplVars['userservice'] = $userservice; + +// 6 // Force UTF-8 behaviour for server (cannot be move into top.inc.php which is not included into every file) +header('Content-Type: text/html; charset=utf-8'); ?>