CookieValuePersister not support encoding other than ISO8859-1

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

CookieValuePersister not support encoding other than ISO8859-1

oliver.stef
Hi,
I'm trying save some values with CookieValuePersister and it all working OK when the value is in English, but when i'm trying to use other input (like Chinese,  Japanese... etc. ) i get some error. 

The Error: "... java.lang.IllegalArgumentException: Control character in cookie value or attribute.     at org.apache.tomcat.util.http.CookieSupport.isHttpSeparator(CookieSupport.java:177)     at org.apache.tomcat.util.http.CookieSupport.isHttpToken(CookieSupport.java:199)     at org.apache.tomcat.util.http.ServerCookie.appendCookieValue(ServerCookie.java:187)     at org.apache.catalina.connector.Response.addCookieInternal(Response.java:1045) ..." 

any ideas? 
10x!