Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

javascript's encodeURIComponent and jsps

843840Jan 21 2009 — edited Jan 21 2009
I'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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 18 2009
Added on Jan 21 2009
11 comments
3,461 views