summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar mensonge2009-01-22 15:45:32 +0000
committerGravatar mensonge2009-01-22 15:45:32 +0000
commit34645dd6e8291caa9c1538715783b971b7cfa24d (patch)
tree6e1dddafd7872f5aa2e784c7d29ae956fe496d3a
parent42af12957bbc7ff312040814f06dc6eed6d11f31 (diff)
downloadscuttle-34645dd6e8291caa9c1538715783b971b7cfa24d.tar.gz
scuttle-34645dd6e8291caa9c1538715783b971b7cfa24d.zip
Interface Fix: improve utf-8 behaviour
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@240 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--ajax/getlinkedtags.php2
-rw-r--r--ajax/gettags.php2
-rw-r--r--header.inc.php3
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');
?>