Thanks for all your help. Here's some more data and an update:
1) The jsp is basically displaying unicode strings from the db. So,
there is no other data other than a directive to print the string from
the db.
2) Running a direct query from the db shows the string correctly. The
db is mysql.
If your JSP page is being included from another servlet, then it won't be
allowed to set the content-type (or charset) of the response. Just a wild
guess here :).
The HTTP/1.1 RFC states that the character encoding of the headers is
iso-8859-1. That is why Tomcat doesn't provide an option to
> From: Enrico Donelli [mailto:[EMAIL PROTECTED]
> Subject: Re: Response encoding problem
>
> I don't know if this helps, but I had a similar problems once, and it
> was caused by a filter which was reading a parameter from the request.
> This first access set the encodin
I don't know if this helps, but I had a similar problems once, and it
was caused by a filter which was reading a parameter from the request.
This first access set the encoding to 8859-1, overriding all my
following settings.
I would start from this ... hope this helps.
Good luck!
Enrico
On 18/1
Hi - I'm trying to show utf-8 data in the browser from my jsp page.
When the page renders, its character encoding is iso-8859-1, according
to the browser. The http
response headers have the same encoding (iso-8859-1).
Here's what's been done thus far:
1) meta tag set as follows:
2) jsp page e