My encoding is set to ISO-8859-1.
I'm making an AJAX call using jQuery.ajax
to a servlet. The URL (after it has been serialized by jQuery) ends up looking like this:
https://myurl.com/countryAndProvinceCodeServlet?action=getProvinces&label=%C3%85land+Islands
The actual label value is Åland Islands
. When this comes to the servlet, the value that I receive is:
Ã\u0085land Islands
But this is not what I want. I'd like it to get decoded to Åland Islands
. I've tried many things (setting scriptCharset
, trying to convert the string using getBytes()
, but nothing seems to work).