diff --git a/phpgwapi/inc/htmlarea-lang.php b/phpgwapi/inc/htmlarea-lang.php
index adc8b32586..61974575ef 100644
--- a/phpgwapi/inc/htmlarea-lang.php
+++ b/phpgwapi/inc/htmlarea-lang.php
@@ -24,6 +24,7 @@ $GLOBALS['phpgw_info']['flags'] = Array(
);
include('../../header.inc.php');
+header('Content-type: text/javascript; charset='.$GLOBALS['phpgw']->translation->charset());
$GLOBALS['phpgw']->translation->add_app('htmlarea');
// I18N constants
diff --git a/phpgwapi/inc/jscalendar-setup.php b/phpgwapi/inc/jscalendar-setup.php
index 9523774f4e..fe274bf12d 100644
--- a/phpgwapi/inc/jscalendar-setup.php
+++ b/phpgwapi/inc/jscalendar-setup.php
@@ -25,6 +25,7 @@ $GLOBALS['phpgw_info']['flags'] = Array(
);
include('../../header.inc.php');
+header('Content-type: text/javascript; charset='.$GLOBALS['phpgw']->translation->charset());
$GLOBALS['phpgw']->translation->add_app('jscalendar');
$dateformat = $GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat'];
diff --git a/phpgwapi/js/htmlarea/plugins/ContextMenu/lang/lang.php b/phpgwapi/js/htmlarea/plugins/ContextMenu/lang/lang.php
index f49f456c3e..b74c82ca57 100644
--- a/phpgwapi/js/htmlarea/plugins/ContextMenu/lang/lang.php
+++ b/phpgwapi/js/htmlarea/plugins/ContextMenu/lang/lang.php
@@ -24,6 +24,7 @@ $GLOBALS['phpgw_info']['flags'] = Array(
);
include('../../../../../../header.inc.php');
+header('Content-type: text/javascript; charset='.$GLOBALS['phpgw']->translation->charset());
$GLOBALS['phpgw']->translation->add_app('htmlarea-ContextMenu');
// I18N constants
diff --git a/phpgwapi/js/htmlarea/plugins/FullPage/lang/lang.php b/phpgwapi/js/htmlarea/plugins/FullPage/lang/lang.php
index ef5a0d9fdc..f7d91d205a 100644
--- a/phpgwapi/js/htmlarea/plugins/FullPage/lang/lang.php
+++ b/phpgwapi/js/htmlarea/plugins/FullPage/lang/lang.php
@@ -24,6 +24,7 @@ $GLOBALS['phpgw_info']['flags'] = Array(
);
include('../../../../../../header.inc.php');
+header('Content-type: text/javascript; charset='.$GLOBALS['phpgw']->translation->charset());
$GLOBALS['phpgw']->translation->add_app('htmlarea-FullPage');
// I18N for the FullPage plugin
diff --git a/phpgwapi/js/htmlarea/plugins/HtmlTidy/lang/lang.php b/phpgwapi/js/htmlarea/plugins/HtmlTidy/lang/lang.php
index d9bc8a5abb..8c429427e9 100644
--- a/phpgwapi/js/htmlarea/plugins/HtmlTidy/lang/lang.php
+++ b/phpgwapi/js/htmlarea/plugins/HtmlTidy/lang/lang.php
@@ -24,6 +24,7 @@ $GLOBALS['phpgw_info']['flags'] = Array(
);
include('../../../../../../header.inc.php');
+header('Content-type: text/javascript; charset='.$GLOBALS['phpgw']->translation->charset());
$GLOBALS['phpgw']->translation->add_app('htmlarea-HtmlTidy');
// I18N constants
diff --git a/phpgwapi/js/htmlarea/plugins/ListType/lang/lang.php b/phpgwapi/js/htmlarea/plugins/ListType/lang/lang.php
index ca38f0bfdb..6b5a1dbb7b 100644
--- a/phpgwapi/js/htmlarea/plugins/ListType/lang/lang.php
+++ b/phpgwapi/js/htmlarea/plugins/ListType/lang/lang.php
@@ -24,6 +24,7 @@ $GLOBALS['phpgw_info']['flags'] = Array(
);
include('../../../../../../header.inc.php');
+header('Content-type: text/javascript; charset='.$GLOBALS['phpgw']->translation->charset());
$GLOBALS['phpgw']->translation->add_app('htmlarea-ListType');
// I18N constants
diff --git a/phpgwapi/js/htmlarea/plugins/SpellChecker/lang/lang.php b/phpgwapi/js/htmlarea/plugins/SpellChecker/lang/lang.php
index 72cd33dee9..09be0aa762 100644
--- a/phpgwapi/js/htmlarea/plugins/SpellChecker/lang/lang.php
+++ b/phpgwapi/js/htmlarea/plugins/SpellChecker/lang/lang.php
@@ -24,6 +24,7 @@ $GLOBALS['phpgw_info']['flags'] = Array(
);
include('../../../../../../header.inc.php');
+header('Content-type: text/javascript; charset='.$GLOBALS['phpgw']->translation->charset());
$GLOBALS['phpgw']->translation->add_app('htmlarea-SpellChecker');
// I18N constants
diff --git a/phpgwapi/js/htmlarea/plugins/TableOperations/lang/lang.php b/phpgwapi/js/htmlarea/plugins/TableOperations/lang/lang.php
index d58ae8ab0e..56b370f3fe 100644
--- a/phpgwapi/js/htmlarea/plugins/TableOperations/lang/lang.php
+++ b/phpgwapi/js/htmlarea/plugins/TableOperations/lang/lang.php
@@ -24,6 +24,7 @@ $GLOBALS['phpgw_info']['flags'] = Array(
);
include('../../../../../../header.inc.php');
+header('Content-type: text/javascript; charset='.$GLOBALS['phpgw']->translation->charset());
$GLOBALS['phpgw']->translation->add_app('htmlarea-TableOperations');
// I18N constants
diff --git a/phpgwapi/js/htmlarea/plugins/UploadImage/lang/lang.php b/phpgwapi/js/htmlarea/plugins/UploadImage/lang/lang.php
index 6984e872d1..0b2445723c 100644
--- a/phpgwapi/js/htmlarea/plugins/UploadImage/lang/lang.php
+++ b/phpgwapi/js/htmlarea/plugins/UploadImage/lang/lang.php
@@ -24,6 +24,7 @@ $GLOBALS['phpgw_info']['flags'] = Array(
);
include('../../../../../../header.inc.php');
+header('Content-type: text/javascript; charset='.$GLOBALS['phpgw']->translation->charset());
$GLOBALS['phpgw']->translation->add_app('htmlarea-SpellChecker');
// I18N for the FullPage plugin