Reputation: 31
I have a spring + hibernate java project that is saving a value data into DB like this: 'Inglés
' where é
; stands for é.
But when the jsp shows it: <c:out value="${area.descripcion}"/>
the page is shown like this: 'Inglés
'.
How Can I make to show the word correctly like this: Inglés ?
the web.xml has configured the encoding:
<filter>
<filter-name>characterEncodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
Upvotes: 1
Views: 722
Reputation: 31
The c:out tag has an escapeXML attribute I had to use to evaluate HTML tags:
<c:out value="${area.descripcion}" escapeXml="false"/>
With that attribute set to false problem solved!!.
Upvotes: 1