I am configured to use RESTeasy for jax-rs on my server. My client sends a string containing the character "โ", and the server can save this character (I can confirm that it is stored correctly on the server). However, the server does not seem to be able to return "โ" in response - instead, "?" heading off.
I suppose I need to specify a reverse encoding or something like that, but I don't know where to do this, or how to check what the current encoding is!
How to specify the encoding on my server so that I can return "โ" in response?
edit to add code
My server code:
@Path("compiled/{rootReportGroupId}") @GET @Produces("text/html; charset=UTF-8") @NoCache public String getCompiledReports(@PathParam("rootReportGroupId") Long rootReportGroupId){ return "โ"; }
Request example:
GET http://192.168.0.12:8888/rest/reports/compiled/190 Host 192.168.0.12:8888 User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language en-us,en;q=0.5 Accept-Encoding gzip, deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 Connection keep-alive Content-Type application/json
Answer headers:
Cache-Control public, no-transform, no-cache Content-Type text/html;charset="UTF-8" Content-Length 1 Server Jetty(6.1.x)
Answer body:
?
source share