Mark Fried

Greenhorn
+ Follow
since Mar 19, 2019
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mark Fried

Thanks for your hint - I explicitly set encoding in the JSB's page declaration and then it's ok.

Unfortunately I've got som 500 JSP pages here and was hoping to find a setting in Wildfly so that I would not need to change every single JSP.

Is there no way to change encoding for a Wildfly instance like it's possible for our old Weblogic server?

Best regards

Mark.
5 years ago
That's all done correctly - running on Weblogic (which is configured for ISO-8859-15) everything works fine, the response headers are ISO there, too.

The created HTMLs have the correct meta setting on Wildfly (see above), only the respone headers set encoding to be UTF-8 - so I guess, I need to configure Wildfly accordingly.
5 years ago
Yes, they are JSPs - sorry forgot to mention this.

M.
5 years ago
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 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.
5 years ago