开发者

Unescaping / decoding an email address set in a cookie

开发者 https://www.devze.com 2023-01-22 19:47 出处:网络
I\'ve stored an email address in a cookie, and I\'m sending it to a jsp file on google appengine 开发者_如何学Goto be verified.The @ is coming through as %40.I need to get it back to an @, and convert

I've stored an email address in a cookie, and I'm sending it to a jsp file on google appengine 开发者_如何学Goto be verified. The @ is coming through as %40. I need to get it back to an @, and convert any other special chars that might have been encoded. Are there classes available through appengine that deal with this conversion?


Look at URLDecoder and URLEncoder:

http://download.oracle.com/javase/6/docs/api/java/net/URLDecoder.html

Looking at the JRE whitelist they are both fine to use.

0

精彩评论

暂无评论...
验证码 换一张
取 消