dev@grizzly.java.net

UTF8 encoding problem

From: Cam Bazz <cambazz_at_gmail.com>
Date: Wed, 25 Jun 2008 18:22:28 +0300

Hello,

I made a simple http async request processor as described in Jean-Francois's
blog and hooked it up to a lucene index, so I can make simple operations
such as insert or delete from the index in a sync manner.

however I am using utf-8 fonts. I have been trying for a day, but I could
not find a solution to the font problem. the
request.setCharacterEncoding("UTF-8") does not have an effect.

namely, I talk to the grizzly daemon from another servlet, which encodes the
uri parameters before sending it to grizzly daemon. basically for non
standard characters it sends %C4%C1 alike characters.

when the service(Request req, Response res) receives the uri, it wont decode
them properly.

req.getParameters().getUndecodedParameter("paramName") will also return a
empty string.

(I could decode it on my own, if I knew the undecoded version)

any ideas on this one?

Best Regards,
-C.B.