How to change ajax-charset?
问题 How can I change the default encoding used by $.post() ? The arguments are encoded with UTF-8. How can I encode it with ISO 8859-1? 回答1: You could use: contentType:"application/x-javascript; charset:ISO-8859-1" 回答2: By giving the content type explicitly during ajax call as below may allow you to override the default content type. $.ajax({ data: parameters, type: "POST", url: ajax_url, timeout: 20000, contentType: "application/x-www-form-urlencoded;charset=ISO-8859-15", dataType: 'json',