I have a project running in a standalone WildFly that is working fine locally under Eclipse, but the same project running on WildFly in a remote server under Apache HTTP is getting special characters corrupted after submitting a file. For example:
Before submit a file:
After submit a file:
OS: Linux
Using: JSF 2.2, Java 8, WildFly 10 and Apache HTTP 2.4
All the XHTML files are encoded with UTF-8 and the head contains the meta tag:
<meta http-equiv="restrict-type" content="text/html; charset=UTF-8" />
I've already tried:
→ Form with the 'charset' param in the enctype attribute:
<h:form id="fileForm" enctype="multipart/form-data;charset=UTF-8">
→ Running WildFly with the argument:
-Dfile.encoding=UTF-8
→ Enable the following option in httpd.conf:
AddDefaultCharset UTF-8
I don't know what I'm missing... Did anyone know a solution to this problem? I would appreciate any help. Thank you in advance and sorry for the bad English.