Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 272
user897237 Avatar asked Nov 27 '11 13:11

user897237


1 Answers

You could use:

contentType:"application/x-javascript; charset:ISO-8859-1"
like image 65
Sudhir Bastakoti Avatar answered Sep 18 '22 18:09

Sudhir Bastakoti