aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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');
?>