In my web app, I submit some form fields with jQuery’s $.getJSON() method. I am having some problems with the encoding. The character-set of my app is charset=ISO-8859-1, but I think these fields are submitted with UTF-8.
How I can set encoding used in $.getJSON calls?
I think that you’ll probably have to use
$.ajax()if you want to change the encoding, see thecontentTypeparam below (thesuccessanderrorcallbacks assume you have<div id='success'></div>and<div id='error'></div>in the html):I actually just had to do this about an hour ago, what a coincidence!