Balaji
Balaji

Reputation: 869

Spanish characters are displayed as Symbols when rendered using JSP

Earlier i had a issue with spanish character encoding in Java encoding and for which i got solution in Issue with spanish characters in java string.

Now when i want to display the contents in the JSP i am getting strange symbols in the page. When i had break point in JSP the contents are fine but in the page i see symbols in place of spanish characters

Example - "D�le" is displayed in place of "Déle".

I have added the page content in my JSPs

<%@ page contentType="text/html; charset=UTF-8" session="false" %>

Please help me to solve the issue.

Thanks in advance

Upvotes: 3

Views: 4154

Answers (2)

dogbane
dogbane

Reputation: 274888

Try setting the following as well:

<%@ page pageEncoding="UTF-8" %>
<meta http-equiv="content-type" content="text/html; charset=utf-8">

Upvotes: 1

ring bearer
ring bearer

Reputation: 20803

is it charset UTF-8 or ISO-8859-1 for Latin? Also, the browser, and the font all have to have the support for the charset and special characters used (For example: Verdana should work fine) Is the browser rendering other spanish content (from www) properly?

Upvotes: 1

Related Questions