0 Replies Latest reply on Mar 20, 2019 1:52 AM by Markus Fried

    How to set Wildfly 15's encoding to ISO-8859-15??

    Markus Fried Newbie

      Hi,

       

      I'm running a legacy project on Wildfly 15. The projects resources are encoded in ISO-8859-15 (cannot be changed). The HTML's (generated from JSPs) meta tags declare content type like

       

      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15">

       

      Moreover I set the following definition in standalone-full.xml:

       

      <server name="default-server">
        
      <http-listener name="default" socket-binding="http" url-charset="ISO-8859-15" redirect-socket="https" enable-http2="true"/>
        
      <https-listener name="https" socket-binding="https" url-charset="ISO-8859-15" security-realm="ApplicationRealm" enable-http2="true"/>
      ...
      <servlet-container name="default" default-encoding="ISO-8859-15" use-listener-encoding="true">

       

      Still I see UTF-8 as content-type in the response headers served by Wildfly.

       

      Problems arise for example with jQuery resources (e.g. datepicker) where german umlauts are not displayed correctly.

       

      What am I missing out? What is the correct way to set the encodings for Wildfly to be ISO-8859-15?

       

      Best regards

       

      Mark.