Changeset 30381

Show
Ignore:
Timestamp:
24.02.2016 10:17:36 (4 years ago)
Author:
litvinovg
Message:

Fix for suddenly appeared encoding problems with ajax POST requests

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/documentmaker_scripts_util.js

    r30309 r30381  
    231231        var ajax = new gs.functions.ajaxRequest(); 
    232232        ajax.open("POST", gs.xsltParams.library_name, true); 
    233         ajax.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
     233        ajax.setRequestHeader("Content-type", "application/x-www-form-urlencoded; charset=UTF-8"); 
    234234        ajax.onreadystatechange = function() 
    235235        {