I have been trying to get this work but havent got any luck so far.
I am not very clear of whats going on but I will try to explain as much as I can.
My server side jsp pages are all using ISO-8859-1 encoding which I do not want to change.
All the request/responses are in xml form.
The POST request currently is using javascript escapeURIComponent
function and everything worked well till one has special characters, for example string:hello°world©®™test. When this string is POSTed(with escapeURIComponent
to the data part) from IE, and when the page is reloaded which should get the same string, the string is rendered as:hello°world©®™test
I am assuming that this is happening as encodeURIComponent
function encodes the string into UTF-8, and not to ISO-8859-1, and when the page renders, the UTF-8 is interpreted as ISO-8859-1 character, and hence showing the string garbled.
Is there any way to solve this without converting the webpages to UTF-8 charset??
The POST request has Content-Type set to "application/x-www-form-urlencoded"
Thanks in advance.