jbosscharacter-encodingwildflywildfly-10undertow

Charset Encoding in WildFly


All my application files were created using UTF-8 yet WildFly serves them as ISO-8859-1.

So I have a few questions:


Solution

  • You can set the default encoding of Wildfly using the following command on the CLI:

    /subsystem=undertow/servlet-container=default:write-attribute(name="default-encoding" value="utf-8")
    

    url-charset is used for encoding/decoding the URL query parameters.