This question already has an answer here:
- Jquery ignores encoding ISO-8859-1 2 answers
- How do I convert special UTF-8 chars to their iso-8859-1 equivalent using javascript? 6 answers
I am sending a HTTP request through jQuery's ajax.
But the server, which I have no access, returns ISO-8859-1 and I my page is UTF-8.
How can I convert the characters to be readable?
For without converting appears something like: it�rio
@Edit: I've tried changing the charset of ajax requests using:
$.ajax({ contentType: ... });
And I tried to change the meta of the html to ISO-8859-1.
@Solution: I've found the solution on: https://stackoverflow.com/a/14397845/3451442