From: Adrian R. <ad...@te...> - 2012-11-09 06:17:51
|
That actually did not work for me. Are you also accepting uploads that need to transfer UTF8 data? If so, I'll explain everything I had to go through to make it happen. But, if you just want to make sure the response content type has the charset, leave the Produces with application/json and make a post process interceptor that appends the charset to the content type. That's step 1. Let me know if you need more info on accepting UTF8 data via multipart form uploads. Sent from my iPhone On Nov 8, 2012, at 9:04 PM, Cesar Casasola <ces...@gm...> wrote: I want to encoding a REST service in UTF-8. The code is following: @GET @Path("/get") @Produces("application/json; charset=UTF-8")public Response restService() { //code return Response.status(200).entity(result).build(); } This is correct? I'm encoding in UTF-8 fort a Android client can consume the service, but It can't...Get HTTP code 465. what is the error? ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov _______________________________________________ Resteasy-users mailing list Res...@li... https://lists.sourceforge.net/lists/listinfo/resteasy-users |