title: character encoding responses with RESTEasy / jax-rs
body: <p>I'm set up using RESTeasy for jax-rs on my server.  My client sends a string containing the character '✓', and the server can store that character (I can confirm that it is being stored correctly on the server).  However, the server can't seem to return the '✓' in a response - instead, a '?' gets sent.</p>
  
  <p>I'm assuming I need to specify a return encoding or something, but I don't know where to do this, or how to check to see what the current encoding is!</p>
  
  <p>How do I specify the encoding on my server so that I can return a '✓' in a response?</p>
  
  <p><strong>edit to add code</strong></p>
  
  <p>My server code:</p>
  
  <pre><code>@Path("compiled/{rootReportGroupId}")
  @GET
  @Produces("text/html; charset=UTF-8")
  @NoCache
  public String getCompiledReports(@PathParam("rootReportGroupId") Long rootReportGroupId){
      return "✓";
  }
  </code></pre>
  
  <p>A sample request:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>The response headers:</p>
  
  <pre><code>Cache-Control   public, no-transform, no-cache
  Content-Type    text/html;charset="UTF-8"
  Content-Length  1
  Server  Jetty(6.1.x)
  </code></pre>
  
  <p>The response body:</p>
  
  <pre><code>?
  </code></pre>