Response character encoding is broken in JSF application running on JBoss EAP 8.0.3+

Solution Unverified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 8.0.3+
  • JSF (mojarra)

Issue

Response character encoding is broken in JSF application running on JBoss EAP 8.0.3+

Resolution

This issue has been reporeted as This content is not included.JBEAP-28883, which will be fixed in JBoss EAP 8.0.7+ and 8.1.0+.

As a workaround until the fixed version is released, you can specify default character encoding (like UTF-8) explicitly as default-encoding attribute (undefined by default) of <servlet-container> in undertow subsystem. For example:

/subsystem=undertow/servlet-container=default:write-attribute(name="default-encoding", value="utf-8")    
            <servlet-container name="default" default-encoding="UTF-8"> <!-- add default-encoding="UTF-8" -->
                <jsp-config/>
                <websockets/>
            </servlet-container>

Root Cause

Components
Category
Tags

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.