diff --git a/views/bootstrap/class.AddFile.php b/views/bootstrap/class.AddFile.php index 3df9f3861..7e7acb6b2 100644 --- a/views/bootstrap/class.AddFile.php +++ b/views/bootstrap/class.AddFile.php @@ -35,7 +35,7 @@ class SeedDMS_View_AddFile extends SeedDMS_Bootstrap_Style { $enablelargefileupload = $this->params['enablelargefileupload']; $partitionsize = $this->params['partitionsize']; $maxuploadsize = $this->params['maxuploadsize']; - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); if($enablelargefileupload) $this->printFineUploaderJs('../op/op.UploadChunks.php', $partitionsize, $maxuploadsize); diff --git a/views/bootstrap/class.AddSubFolder.php b/views/bootstrap/class.AddSubFolder.php index e7542bdf8..8bbf4eb9c 100644 --- a/views/bootstrap/class.AddSubFolder.php +++ b/views/bootstrap/class.AddSubFolder.php @@ -33,7 +33,7 @@ class SeedDMS_View_AddSubFolder extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ $strictformcheck = $this->params['strictformcheck']; - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); ?> $(document).ready( function() { $("#form1").validate({ diff --git a/views/bootstrap/class.AttributeMgr.php b/views/bootstrap/class.AttributeMgr.php index de06bc3dc..234317f62 100644 --- a/views/bootstrap/class.AttributeMgr.php +++ b/views/bootstrap/class.AttributeMgr.php @@ -38,7 +38,7 @@ class SeedDMS_View_AttributeMgr extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ $selattrdef = $this->params['selattrdef']; - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); parent::jsTranslations(array('cancel', 'splash_move_document', 'confirm_move_document', 'move_document', 'confirm_transfer_link_document', 'transfer_content', 'link_document', 'splash_move_folder', 'confirm_move_folder', 'move_folder')); ?> diff --git a/views/bootstrap/class.BackupTools.php b/views/bootstrap/class.BackupTools.php index d2567ba58..e83e74903 100644 --- a/views/bootstrap/class.BackupTools.php +++ b/views/bootstrap/class.BackupTools.php @@ -32,7 +32,7 @@ require_once("class.Bootstrap.php"); class SeedDMS_View_BackupTools extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); // $this->printFolderChooserJs("form1"); // $this->printFolderChooserJs("form2"); diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index fd2bd1a21..6c3839e1f 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -221,7 +221,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);; } /* }}} */ function webrootjs() { /* {{{ */ - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); echo "var seeddms_absbaseprefix=\"".$this->params['absbaseprefix']."\";\n"; echo "var seeddms_webroot=\"".$this->params['settings']->_httpRoot."\";\n"; /* Place the current folder id in a js variable, just in case some js code diff --git a/views/bootstrap/class.Calendar.php b/views/bootstrap/class.Calendar.php index 342b3eb73..bee4fe63d 100644 --- a/views/bootstrap/class.Calendar.php +++ b/views/bootstrap/class.Calendar.php @@ -227,7 +227,7 @@ class SeedDMS_View_Calendar extends SeedDMS_Bootstrap_Style { $dms = $this->params['dms']; $user = $this->params['user']; $strictformcheck = $this->params['strictformcheck']; - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); ?> $(document).ready(function() { diff --git a/views/bootstrap/class.Categories.php b/views/bootstrap/class.Categories.php index 944414678..2dbf313ba 100644 --- a/views/bootstrap/class.Categories.php +++ b/views/bootstrap/class.Categories.php @@ -38,7 +38,7 @@ class SeedDMS_View_Categories extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ $selcat = $this->params['selcategory']; - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); parent::jsTranslations(array('cancel', 'splash_move_document', 'confirm_move_document', 'move_document', 'confirm_transfer_link_document', 'transfer_content', 'link_document', 'splash_move_folder', 'confirm_move_folder', 'move_folder')); ?> $(document).ready( function() { diff --git a/views/bootstrap/class.Charts.php b/views/bootstrap/class.Charts.php index afe106741..117caecc0 100644 --- a/views/bootstrap/class.Charts.php +++ b/views/bootstrap/class.Charts.php @@ -35,8 +35,7 @@ class SeedDMS_View_Charts extends SeedDMS_Bootstrap_Style { $data = $this->params['data']; $type = $this->params['type']; - header('Content-Type: application/javascript'); - + header('Content-Type: application/javascript; charset=UTF-8'); ?> $("
").css({ position: "absolute", diff --git a/views/bootstrap/class.CreateIndex.php b/views/bootstrap/class.CreateIndex.php index c4cf75fd6..733e5a7d7 100644 --- a/views/bootstrap/class.CreateIndex.php +++ b/views/bootstrap/class.CreateIndex.php @@ -32,7 +32,7 @@ require_once("class.Bootstrap.php"); class SeedDMS_View_CreateIndex extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); } /* }}} */ function show() { /* {{{ */ diff --git a/views/bootstrap/class.DefaultKeywords.php b/views/bootstrap/class.DefaultKeywords.php index 603fd3ec4..6c891dca6 100644 --- a/views/bootstrap/class.DefaultKeywords.php +++ b/views/bootstrap/class.DefaultKeywords.php @@ -32,7 +32,7 @@ require_once("class.Bootstrap.php"); class SeedDMS_View_DefaultKeywords extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); ?> function checkForm() { diff --git a/views/bootstrap/class.DocumentAccess.php b/views/bootstrap/class.DocumentAccess.php index 220cbc545..5c4bf6e1a 100644 --- a/views/bootstrap/class.DocumentAccess.php +++ b/views/bootstrap/class.DocumentAccess.php @@ -45,7 +45,7 @@ class SeedDMS_View_DocumentAccess extends SeedDMS_Bootstrap_Style { } /* }}} */ function js() { /* {{{ */ - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); ?> function checkForm() { diff --git a/views/bootstrap/class.DocumentChooser.php b/views/bootstrap/class.DocumentChooser.php index 801bfdc7a..d3be3d078 100644 --- a/views/bootstrap/class.DocumentChooser.php +++ b/views/bootstrap/class.DocumentChooser.php @@ -44,7 +44,7 @@ class SeedDMS_View_DocumentChooser extends SeedDMS_Bootstrap_Style { $form = $this->params['form']; $orderby = $this->params['orderby']; - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); if($folder) $this->printNewTreeNavigationJs($folder->getID(), M_READ, 1, $form, '', $orderby); } /* }}} */ diff --git a/views/bootstrap/class.DocumentNotify.php b/views/bootstrap/class.DocumentNotify.php index d9d2f14d4..d94baf2fa 100644 --- a/views/bootstrap/class.DocumentNotify.php +++ b/views/bootstrap/class.DocumentNotify.php @@ -32,7 +32,7 @@ require_once("class.Bootstrap.php"); class SeedDMS_View_DocumentNotify extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); ?> function checkForm() { diff --git a/views/bootstrap/class.DropFolderChooser.php b/views/bootstrap/class.DropFolderChooser.php index 688d2785d..477a48d25 100644 --- a/views/bootstrap/class.DropFolderChooser.php +++ b/views/bootstrap/class.DropFolderChooser.php @@ -37,7 +37,7 @@ require_once("SeedDMS/Preview.php"); class SeedDMS_View_DropFolderChooser extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); ?> $('.fileselect').click(function(ev) { attr_filename = $(ev.currentTarget).data('filename'); diff --git a/views/bootstrap/class.EditDocument.php b/views/bootstrap/class.EditDocument.php index 42d492f85..852796a15 100644 --- a/views/bootstrap/class.EditDocument.php +++ b/views/bootstrap/class.EditDocument.php @@ -33,7 +33,7 @@ class SeedDMS_View_EditDocument extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ $strictformcheck = $this->params['strictformcheck']; - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); $this->printKeywordChooserJs('form1'); ?> $(document).ready( function() { diff --git a/views/bootstrap/class.EditUserData.php b/views/bootstrap/class.EditUserData.php index fe145d8bf..0db8b19eb 100644 --- a/views/bootstrap/class.EditUserData.php +++ b/views/bootstrap/class.EditUserData.php @@ -32,7 +32,7 @@ require_once("class.Bootstrap.php"); class SeedDMS_View_EditUserData extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); ?> $(document).ready( function() { $("#form").validate({ diff --git a/views/bootstrap/class.ExpiredDocuments.php b/views/bootstrap/class.ExpiredDocuments.php index 0f2ba6a28..92b63dd0e 100644 --- a/views/bootstrap/class.ExpiredDocuments.php +++ b/views/bootstrap/class.ExpiredDocuments.php @@ -40,7 +40,7 @@ class SeedDMS_View_ExpiredDocuments extends SeedDMS_Bootstrap_Style { $dms = $this->params['dms']; $user = $this->params['user']; - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); parent::jsTranslations(array('cancel', 'splash_move_document', 'confirm_move_document', 'move_document', 'confirm_transfer_link_document', 'transfer_content', 'link_document', 'splash_move_folder', 'confirm_move_folder', 'move_folder')); $this->printDeleteDocumentButtonJs(); /* Add js for catching click on document in one page mode */ diff --git a/views/bootstrap/class.ExtensionMgr.php b/views/bootstrap/class.ExtensionMgr.php index 6bca7e627..44850cb15 100644 --- a/views/bootstrap/class.ExtensionMgr.php +++ b/views/bootstrap/class.ExtensionMgr.php @@ -28,7 +28,7 @@ require_once("class.Bootstrap.php"); class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); ?> $(document).ready( function() { $('body').on('click', 'a.download', function(ev){ diff --git a/views/bootstrap/class.FolderChooser.php b/views/bootstrap/class.FolderChooser.php index b6265bd59..63dae2d88 100644 --- a/views/bootstrap/class.FolderChooser.php +++ b/views/bootstrap/class.FolderChooser.php @@ -46,7 +46,7 @@ class SeedDMS_View_FolderChooser extends SeedDMS_Bootstrap_Style { $mode = $this->params['mode']; $orderby = $this->params['orderby']; - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); $this->printNewTreeNavigationJs($dms->getRootFolder()->getId()/*$rootfolderid*/, $mode, 0, $form, 0, $orderby); } /* }}} */ diff --git a/views/bootstrap/class.ForcePasswordChange.php b/views/bootstrap/class.ForcePasswordChange.php index 02ef8f122..0038e466a 100644 --- a/views/bootstrap/class.ForcePasswordChange.php +++ b/views/bootstrap/class.ForcePasswordChange.php @@ -32,7 +32,7 @@ require_once("class.Bootstrap.php"); class SeedDMS_View_ForcePasswordChange extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); ?> function checkForm() { diff --git a/views/bootstrap/class.GroupMgr.php b/views/bootstrap/class.GroupMgr.php index af9359f02..97ce669d4 100644 --- a/views/bootstrap/class.GroupMgr.php +++ b/views/bootstrap/class.GroupMgr.php @@ -40,7 +40,7 @@ class SeedDMS_View_GroupMgr extends SeedDMS_Bootstrap_Style { $selgroup = $this->params['selgroup']; $strictformcheck = $this->params['strictformcheck']; - header("Content-type: text/javascript"); + header('Content-Type: application/javascript; charset=UTF-8'); ?> function checkForm1() { msg = new Array(); diff --git a/views/bootstrap/class.GroupView.php b/views/bootstrap/class.GroupView.php index cf955a5d7..76ec61d96 100644 --- a/views/bootstrap/class.GroupView.php +++ b/views/bootstrap/class.GroupView.php @@ -32,7 +32,7 @@ require_once("class.Bootstrap.php"); class SeedDMS_View_GroupView extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); ?> $(document).ready( function() { $( "#selector" ).change(function() { diff --git a/views/bootstrap/class.ImportFS.php b/views/bootstrap/class.ImportFS.php index e6d500f68..74b29aa7b 100644 --- a/views/bootstrap/class.ImportFS.php +++ b/views/bootstrap/class.ImportFS.php @@ -32,7 +32,7 @@ require_once("class.Bootstrap.php"); class SeedDMS_View_ImportFS extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); // $this->printFolderChooserJs("form1"); $this->printDropFolderChooserJs("form1", 1); diff --git a/views/bootstrap/class.ImportUsers.php b/views/bootstrap/class.ImportUsers.php index 5a2f92673..b4ec429ca 100644 --- a/views/bootstrap/class.ImportUsers.php +++ b/views/bootstrap/class.ImportUsers.php @@ -32,9 +32,8 @@ require_once("class.Bootstrap.php"); class SeedDMS_View_ImportUsers extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ + header('Content-Type: application/javascript; charset=UTF-8'); $this->printFileChooserJs(); - header('Content-Type: application/javascript'); - } /* }}} */ function show() { /* {{{ */ diff --git a/views/bootstrap/class.Indexer.php b/views/bootstrap/class.Indexer.php index 35e9540a3..e2da3ff31 100644 --- a/views/bootstrap/class.Indexer.php +++ b/views/bootstrap/class.Indexer.php @@ -111,7 +111,7 @@ class SeedDMS_View_Indexer extends SeedDMS_Bootstrap_Style { $dms = $this->params['dms']; $user = $this->params['user']; - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); ?> var queue_count = 0; // Number of functions being called var funcArray = []; // Array of functions waiting diff --git a/views/bootstrap/class.KeywordChooser.php b/views/bootstrap/class.KeywordChooser.php index 07ff44590..615c6cf04 100644 --- a/views/bootstrap/class.KeywordChooser.php +++ b/views/bootstrap/class.KeywordChooser.php @@ -33,7 +33,7 @@ class SeedDMS_View_KeywordChooser extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ $form = $this->params['form']; - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); ?> var targetObj = document..keywords; var myTA; diff --git a/views/bootstrap/class.LogManagement.php b/views/bootstrap/class.LogManagement.php index ed6e14103..6f1263dea 100644 --- a/views/bootstrap/class.LogManagement.php +++ b/views/bootstrap/class.LogManagement.php @@ -70,7 +70,7 @@ class SeedDMS_View_LogManagement extends SeedDMS_Bootstrap_Style { } /* }}} */ function js() { /* {{{ */ - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); ?> $(document).ready( function() { $('i.fa fa-arrow-up').on('click', function(e) { diff --git a/views/bootstrap/class.ManageNotify.php b/views/bootstrap/class.ManageNotify.php index 2077c57cb..b84d80c1e 100644 --- a/views/bootstrap/class.ManageNotify.php +++ b/views/bootstrap/class.ManageNotify.php @@ -131,7 +131,7 @@ class SeedDMS_View_ManageNotify extends SeedDMS_Bootstrap_Style { } /* }}} */ function js() { /* {{{ */ - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); // $this->printFolderChooserJs("form1"); // $this->printDocumentChooserJs("form2"); diff --git a/views/bootstrap/class.MoveDocument.php b/views/bootstrap/class.MoveDocument.php index 66502bf23..45428c9c9 100644 --- a/views/bootstrap/class.MoveDocument.php +++ b/views/bootstrap/class.MoveDocument.php @@ -32,7 +32,7 @@ require_once("class.Bootstrap.php"); class SeedDMS_View_MoveDocument extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); // $this->printFolderChooserJs("form1"); } /* }}} */ diff --git a/views/bootstrap/class.MoveFolder.php b/views/bootstrap/class.MoveFolder.php index f990ae3a8..acbc98a3d 100644 --- a/views/bootstrap/class.MoveFolder.php +++ b/views/bootstrap/class.MoveFolder.php @@ -32,7 +32,7 @@ require_once("class.Bootstrap.php"); class SeedDMS_View_MoveFolder extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); // $this->printFolderChooserJs("form1"); } /* }}} */ diff --git a/views/bootstrap/class.MyDocuments.php b/views/bootstrap/class.MyDocuments.php index b572359a0..68f795614 100644 --- a/views/bootstrap/class.MyDocuments.php +++ b/views/bootstrap/class.MyDocuments.php @@ -40,7 +40,7 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { $dms = $this->params['dms']; $user = $this->params['user']; - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); parent::jsTranslations(array('cancel', 'splash_move_document', 'confirm_move_document', 'move_document', 'confirm_transfer_link_document', 'transfer_content', 'link_document', 'splash_move_folder', 'confirm_move_folder', 'move_folder')); $this->printDeleteDocumentButtonJs(); /* Add js for catching click on document in one page mode */ diff --git a/views/bootstrap/class.SetExpires.php b/views/bootstrap/class.SetExpires.php index 3b9e28b37..ed1458bcf 100644 --- a/views/bootstrap/class.SetExpires.php +++ b/views/bootstrap/class.SetExpires.php @@ -32,7 +32,7 @@ require_once("class.Bootstrap.php"); class SeedDMS_View_SetExpires extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); ?> $(document).ready( function() { $('#presetexpdate').on('change', function(ev){ diff --git a/views/bootstrap/class.Settings.php b/views/bootstrap/class.Settings.php index 8187e7c3f..4714db3a5 100644 --- a/views/bootstrap/class.Settings.php +++ b/views/bootstrap/class.Settings.php @@ -207,7 +207,7 @@ class SeedDMS_View_Settings extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ $extmgr = $this->params['extmgr']; - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); ?> $(document).ready( function() { $('#settingstab li a').click(function(event) { diff --git a/views/bootstrap/class.Setup2Factor.php b/views/bootstrap/class.Setup2Factor.php index 21cad1ce8..5c28aa509 100644 --- a/views/bootstrap/class.Setup2Factor.php +++ b/views/bootstrap/class.Setup2Factor.php @@ -33,7 +33,7 @@ require "vendor/autoload.php"; class SeedDMS_View_Setup2Factor extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); ?> function checkForm() { diff --git a/views/bootstrap/class.SubstituteUser.php b/views/bootstrap/class.SubstituteUser.php index fd193b367..06e55d27f 100644 --- a/views/bootstrap/class.SubstituteUser.php +++ b/views/bootstrap/class.SubstituteUser.php @@ -32,6 +32,7 @@ require_once("class.Bootstrap.php"); class SeedDMS_View_SubstituteUser extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ + header('Content-Type: application/javascript; charset=UTF-8'); ?> $(document).ready(function(){ $("#myInput").on("keyup", function() { diff --git a/views/bootstrap/class.Timeline.php b/views/bootstrap/class.Timeline.php index 82e9425cc..675ed4d2a 100644 --- a/views/bootstrap/class.Timeline.php +++ b/views/bootstrap/class.Timeline.php @@ -140,7 +140,7 @@ class SeedDMS_View_Timeline extends SeedDMS_Bootstrap_Style { $to = time(); } - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); parent::jsTranslations(array('cancel', 'splash_move_document', 'confirm_move_document', 'move_document', 'confirm_transfer_link_document', 'transfer_content', 'link_document', 'splash_move_folder', 'confirm_move_folder', 'move_folder')); ?> $(document).ready(function () { diff --git a/views/bootstrap/class.UpdateDocument.php b/views/bootstrap/class.UpdateDocument.php index 4276f8bc0..2d06f5701 100644 --- a/views/bootstrap/class.UpdateDocument.php +++ b/views/bootstrap/class.UpdateDocument.php @@ -37,7 +37,7 @@ class SeedDMS_View_UpdateDocument extends SeedDMS_Bootstrap_Style { $enablelargefileupload = $this->params['enablelargefileupload']; $partitionsize = $this->params['partitionsize']; $maxuploadsize = $this->params['maxuploadsize']; - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); $this->printDropFolderChooserJs("form1"); $this->printSelectPresetButtonJs(); $this->printInputPresetButtonJs(); diff --git a/views/bootstrap/class.UsrMgr.php b/views/bootstrap/class.UsrMgr.php index 1773ccae2..130246711 100644 --- a/views/bootstrap/class.UsrMgr.php +++ b/views/bootstrap/class.UsrMgr.php @@ -35,7 +35,7 @@ class SeedDMS_View_UsrMgr extends SeedDMS_Bootstrap_Style { $seluser = $this->params['seluser']; $strictformcheck = $this->params['strictformcheck']; - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); ?> function checkForm() { diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 1dcbc12bc..3fdd7804c 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -178,7 +178,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { $user = $this->params['user']; $document = $this->params['document']; - header('Content-Type: application/javascript'); + header('Content-Type: application/javascript; charset=UTF-8'); parent::jsTranslations(array('cancel', 'splash_move_document', 'confirm_move_document', 'move_document', 'confirm_transfer_link_document', 'transfer_content', 'link_document', 'splash_move_folder', 'confirm_move_folder', 'move_folder')); if($user->isAdmin()) { $latestContent = $this->callHook('documentLatestContent', $document);