Is there an alternative to the cross-browser function xhr.overrideMimeType ()?

I do not have access to the server, and I need the entire AJAX transaction to occur using ISO-8859-1 encoding. I am using the jQuery.load () function along with the following jQuery method:

jQuery.ajaxSetup({'beforeSend' : function(xhr) {xhr.overrideMimeType('charset=ISO-8859-15'); }}); 

although firefox and chrome return correctly encoded results, IE (all versions) are not. Is there a way to fix this only on the client side?

ps All content is correctly encoded in ISO-8859-1.

+1
javascript jquery ajax
source share
1 answer

I had a similar problem, but the problem is that "overrideMimeType" is not supported in IE (any version). So basically you need to do something like the following articles:

jQuery, AJAX and Internet Explorer from Jeremy Hickson or this fooobar.com/questions/851354 / ...

Hope this helps.

+2
source share

All Articles