Friday, March 13, 2009

How can you store international / Unicode characters into a cookie (JSP)

Question :How can you store international / Unicode characters into a cookie? (JSP)
Answer :One way is, before storing the cookie URLEncode it.
URLEnocder.encoder(str);
And use URLDecoder.decode(str) when you get the stored cookie.

No comments: