RESTEasy doesn't encoding setting in @Produces annotation in JBoss EAP

Solution Verified - Updated -

Issue

  • We are sending an HTTP REST request to a JAX-RS web service that uses RESTEasy as implementation. We noticed that the server always answers in UTF-8 encoding although other encoding was requested in the accept header. How can we make RESTEasy stop ignoring the requested encoding?

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.0
    • 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content