title: Encoding issue under Groovy
body: <p>I am developing an application which should work under different languages (german, spanish, etc). The application uses an Oracle DB.
  I have CRUD business processes and I have the standard views (create, edit, show, list).
  No problems for creating, showing and listing any record containing special chars
  like ä,ö,ü, etc. 
  But when I edit any entry containing any of this characters I am getting the encoded
  version. i.e. 
      &amp; auml; instead of ä
      &amp; ouml; instead of ö
      &amp; uuml; instead of ü</p>
  
  <p>and so on.</p>
  
  <p>Any hint how to solve this problem?</p>
  
  <p>Thanks!</p>
  
  <p>UPDATE
  Thanks for your help. I will describe the complete scenario:</p>
  
  <p>I have a web application written in grails (groovy on grails).
  For developing I am using Jetty as server and Oracle 10g.
  For testing and production I am using Tomcat 6.0.18 and Oracle 10g
  Java version is 1.6.0_02</p>
  
  <p>I have many CRUD processes (create, retrieve, update, delete).
  The application is multilanguage. That is, ä, ö, ü, ß, á, é, í, ó, ú 
  letters (characters) must be allowed as content.</p>
  
  <p>Views are written in gsp. I am using standard .gsp views (create, edit, show, list).
  No problem with create, show, list. That is, if under the create view I type 
  any word using this special characters then this will be shown or listed
  correctly under the show.gsp or list.gsp</p>
  
  <p>The problem arises when editing a record containing such characters. Instead of  -let's say- <strong>ä</strong> appears in the field an &amp; auml; (this is the html encoding of ä).</p>
  
  <p>I have the following settings:</p>
  
  <p>under Config.groovy
      grails.views.gsp.encoding="UTF-8"
      grails.converters.encoding="UTF-8"</p>
  
  <p>Every .gsp page has the following meta tag:</p>
  
  <pre><code> &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" pageEncoding="UTF-8"/&gt;
  </code></pre>
  
  <p>Every form has the following attribute:</p>
  
  <pre><code>&lt;g:form accept-charset="UTF-8" method="post" &gt;
  </code></pre>
  
  <p>Under Tomcat I did the following settings.</p>
  
  <p>tomcat is started with the following options:</p>
  
  <pre><code>CATALINA_OPTS=-Dfile.encoding=UTF-8
  JAVA_OPTS="-Duser.language=de -Duser.country=DE"
  </code></pre>
  
  <p>Under web.xml I set the following filter</p>
  
  <pre><code> &lt;filter&gt;
     &lt;filter-name&gt;SetCharacterEncoding&lt;/filter-name&gt;
     &lt;filter-class&gt;filters.SetCharacterEncodingFilter&lt;/filter-class&gt;
     &lt;init-param&gt;
         &lt;param-name&gt;encoding&lt;/param-name&gt;
         &lt;param-value&gt;UTF-8&lt;/param-value&gt;
     &lt;/init-param&gt;
   &lt;/filter&gt;
  </code></pre>
  
  <p>Under myApplication/WEB-INF/classes/filters I copied the SetCharacterEncodingFilter.class from examples/WEB-INF/classes/filters</p>
  
  <p>Under server.xml I set the following connector:</p>
  
  <pre><code> &lt;Connector port="8080" protocol="HTTP/1.1"
             connectionTimeout="20000"
             redirectPort="8443" URIEncoding="UTF-8" useBodyEncodingForURI="UTF-8" /&gt;
  </code></pre>
  
  <p>The scenario is as follows: The server receives a request for editing a form.
  The server is retrieving the info from the DB and then either the DB is sending
  the information already html encoded (I don't think so) or the server is encoding
  it and sending it encoded to the client.</p>
  
  <p>Moreover, at my controller I can see that the retrieved information from the server is not 
  html encoded. </p>
  
  <p>I don't know which setting has to be done in order to cope this encoding problem
  (which is taking me a lot, a lot of time and effort).</p>
  
  <p>Thanks a lot in advance.</p>
  
  <p>Luis</p>