Problem with comet servlet

3 views
Skip to first unread message

Sand

unread,
Apr 11, 2009, 1:00:17 PM4/11/09
to rocket-gwt
Hi,

I am trying to send some special characters to client using Rocket e.g
Russian characters.
Problem is that CometServerServlet uses ServerOutputStream to write
data to response and it does not supports unicopde characters.
Hence when i run application it throws characterConversionException.

I am having one User object in which i set french and russian names.
And when i try to write to get them to server side cometserverservlet
throws exception

Can you please tell me how can I deal with this problem.
Is there any other rocket version that will help me out of this?


Thanks & regards
Sandeep Patil

Miroslav Pokorny

unread,
Apr 11, 2009, 6:31:37 PM4/11/09
to rocke...@googlegroups.com, rocket-gwt
Hiho

Why not try hacking the source and set the character encoding
appropriately.

Sand

unread,
Apr 21, 2009, 5:48:50 AM4/21/09
to rocket-gwt
Hi Miroslav,

Thank you very much for your valuable inputs.
I changed the code in poller method of CometServerServlet as follows

servletOutputStream.write(escaped.getBytes("UTF-8"));

and the characters are now sent to client correctly.


Thanks & regards
Sandeep Patil

On Apr 12, 3:31 am, Miroslav Pokorny <miroslav.poko...@gmail.com>
wrote:
> Hiho
>
> Why not try hacking the source and set the character encoding  
> appropriately.
>
Reply all
Reply to author
Forward
0 new messages