To display spanish characters on a JSP when the JSP is inside one portal

Hi All,

Previously, I had posted my query here that how to display spanish characters on a JSP screen.

I got a solution that to add

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

to the JSP and to save the JSP in 'UTF-8'encoding format.

This works well in case an individual JSP. But when I am adding the JSP to a web project consisting of many other JSP pages, its not working.

Do I have to change anything else.

Please help me if you have any suggestions. I am eagerly waiting for any response.

Thanks in advance.

[601 byte] By [siriala] at [2007-11-26 15:12:47]
# 1

I used to have a similar problem. I have jsp pages in braz. portugese and for these I have <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

When I tried setting the contentType to UTF-8, the way you wrote foreign characters didn't get submitted properly from input fields so I took it away, then everything worked correctly. Don't know why though.

Niklasa at 2007-7-8 9:03:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...