How can I set the charset with JAX-RS? I\'ve tried @Produces(\"text/html; charset=UTF-8\") but that was ignored and only text/html was send with th
@Produces(\"text/html; charset=UTF-8\")
text/html
As Daemon pointed out in a comment, the latest versions of JAX-RS (including the stable version as of September 2012) now do support the @Produces syntax. So you can just use:
@Produces
@Produces("text/html; charset=UTF-8")