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?
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?
You could use:
It seems the charset cannot be changed anymore –
$.ajax
docs states:By giving the content type explicitly during ajax call as below may allow you to override the default content type.
You would also have to specify the charset on the server.
Ex: for php
I hope this may help you.