diff --git a/message/refresh.php b/message/refresh.php
index daa3a81c389..3f480dae708 100644
--- a/message/refresh.php
+++ b/message/refresh.php
@@ -27,7 +27,7 @@
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
- header('Content-Type: text/html');
+ header('Content-Type: text/html; charset=utf-8');
echo ''."\n";
echo '
';
diff --git a/mod/chat/gui_header_js/jsupdated.php b/mod/chat/gui_header_js/jsupdated.php
index b9f657bd8bd..13bc3369688 100644
--- a/mod/chat/gui_header_js/jsupdated.php
+++ b/mod/chat/gui_header_js/jsupdated.php
@@ -63,7 +63,7 @@
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
- header('Content-Type: text/html');
+ header('Content-Type: text/html; charset=utf-8');
/// required stylesheets
$stylesheetshtml = '';