In our web service we set a cookie through JavaScript wich we read again in Java (Servlet)
However we need to escape the value of the cookie because it may contain i
Client JavaScript/ECMAScript:
encodeURIComponent(cookie_value) // also encodes "+" and ";", see http://xkr.us/articles/javascript/encode-compare/
Server Java:
String cookie_value = java.net.URLDecoder.decode(cookie.getValue());
I'll add further discoveries to my blog entry.