i’m using jQuery for sending ajax requests to the server, but i have some problems with the charset. In the ajax function documentation is written that data is always sent in UTF-8 according to the W3C XMLHTTPRequest standard, so i don’t think that jQuery allows you to change the request charset (except if you load a script, but that’s not my case).
So do you know a way to set the ISO-8859-1 charset for the ajax request in jQuery?
I guess this is not possible. You might want to try to override the
Content-TypeRequest header within yourajaxcall. I tried this with:This actually will override the
Content-Typeheader, but stillcharset=UTF-8is set.So I guess you will have to handle the Encoding serverside.