javascript's encodeURIComponent and jsps
843840Jan 21 2009 — edited Jan 21 2009I'm creating a querystring where one of the parameter values can be an umlaut so I use javascript's encodeURIComponent on that value before adding it to the querystring. When the receiving page receives the parameter, I can't figure out a way to revert back to the original value in the jsp. Yes, the page's encoding is set to utf-8.
Possible solutions:
1) Use post instead of querystrings
2) decode using javascript's decodeURIComponent on page load (too many to do)
3) Is there a way to do the decoding serverside instead? URLDecoder.decode(String s, String enc) doesn't work for me.