title: Encoding servlets with UTF-8 on WildFly
body: <p>I used to run my JavaEE applications on GlassFish server, and there was no problem with the encoding type (UTF-8) since I added the following property in JVM Settings of the server:</p>
  
  <pre><code>file.encoding = UTF-8
  </code></pre>
  
  <p>Now, I'm using WildFly server instead, and I've done the supposed configuration to set the encoding type into UTF-8 but characters are still appearing with wrong encoding not only on the web page but also while debugging the application with Eclipse, the response data loaded using (web servlet requests) are not UTF-8 encoded.
  Below is what I did on WildFly:</p>
  
  <p><a href="https://developer.jboss.org/servlet/JiveServlet/showImage/2-872143-22902/en5.bmp" rel="noreferrer">snapshot1</a></p>
  
  <p><a href="https://developer.jboss.org/servlet/JiveServlet/showImage/2-872143-22903/en2.bmp" rel="noreferrer">snapshot2</a></p>