title: Tiles encoding problem
body: <p>I'm trying to use UTF-8 encoding for the Spring application I'm developing but I have problems in getting the correct encoding when inserting attributes from tiles.</p>
  
  <p>I have this fragment in my JSP template:</p>
  
  <pre><code>&lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&gt; 
      &lt;title&gt;&lt;tiles:getAsString name="title" /&gt;&lt;/title&gt;   
  &lt;/head&gt;
  &lt;body&gt;
      &lt;tiles:insertAttribute name="header" ignore="true" /&gt;
  ....
  </code></pre>
  
  <p>and in my tiles XML config file I have something like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;!DOCTYPE tiles-definitions PUBLIC
     "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN"
     "http://tiles.apache.org/dtds/tiles-config_2_1.dtd"&gt;
  &lt;tiles-definitions&gt;
     &lt;definition name="tiles:base" template="/WEB-INF/views/templates/main.jsp"&gt;
       &lt;put-attribute name="title" value="Título" /&gt;
  ...
  </code></pre>
  
  <p>I have check in eclipse that this files have UTF-8 encoding.
  The word passed in title attribute is not shown correctly (the accented characters are shown in a wrong way) in the page though the rest of the JSP is correct (for instance the JSP fragment which is inserted in header). If I change the encoding to ISO-8859-1 the title is OK, but the rest odf the page is wrong. It seems I cannot get to change the encoding to UTF-8 in my tiles file. I have also looked for "ISO-8859-1" in the files I've created and I haven't set up this configuration in any file.</p>
  
  <p>Can anyone tell me how can I set up the correct encoding for tiles?</p>
  
  <p>Thanks</p>