users@jersey.java.net

UTF-8 handling

From: KSChan <mr.kschan_at_gmail.com>
Date: Wed, 8 Apr 2009 11:45:44 +0800

Hi,

I'm dealing with utf8 handling.

I'm having a jsp <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8"> sending XHR to a Jersey Resource

In the Jersey Resource ...

    @POST
    @Produces("application/json")
    @Consumes("application/json")
    public String postJson( String content ) {
        Logger.getLogger( Proxy.class.getName() ).log(Level.INFO, content);
        return content;
    }

I run this on a glassfish server on both ubuntu and solaris ...

in ubuntu , i can read utf-8 http-post but not in solaris...

is there any help???

-- 
I, have a dream. I want to make my dream come true. Anyway, OLPC Rocks!
http://mr.kschan.googlepages.com