How can I store international / Unicode characters into a cookie?

Sajith Kumar

Example:

I would like to put this String: "até" The problem is when I get the cookie value I receive "at".

----------------------

One way is that before storing the cookie URLEncode it.

URLEnocder.encoder(str);

And use URLDecoder.decode(str) when you get the stored cookie.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact