title: How to set the charset with JAX-RS?
body: <p>How can I set the charset with JAX-RS? I've tried <code>@Produces("text/html; charset=UTF-8")</code> but that was ignored and only <code>text/html</code> was send with the HTTP header. I want to set the charset within a MessageBodyWriter, but don't want to extract the media type by analysing the @Produces annotation via reflection by myself.</p>