Gamini Sirisena wrote:What is your browser? Could it be that there is no unicode font capable of rendering the spanish characters?
I'm having a similar problem - weirdly most of the non alphanumeric characters I'm trying to display work fine -
However Á, Í, Ï, Ð, Á, Ý all display incorrectly.
á, é, í, ó, ú , É, Ó, Ú all display correctly.
jsps are encoded in UTF-8 (with BOM)
The @page attribute is set correctly to <%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" language="java" session="true"%>
The html meta tag for Content type is set correctly to <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
In web.xml, I've set
jsp encoding to be UTF-8
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<page-encoding>UTF-8</page-encoding>
</jsp-property-group>
</jsp-config>
and I'm applying Spring's character encoding filter also
<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>
<filter-mapping>
<filter-name>CharacterEncodingFilter</filter-name>
<servlet-name>/*</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
The characters display incorrectly in Firefox, IE6 and Opera, although IE6 displays ÿ instead of the required chars, whereas FF and Opera display two characters: ?
Font is Arial - so shouldn't be a problem with the font!
Anyone have any ideas??
Thanks
Eoin