tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andoni <>
Subject Re: UTF-8 Encoding in Jsp
Date Tue, 30 Nov 2004 16:53:24 GMT

First and foremost I would say: be absolutely sure that it is the JSP's
fault. I hope you are not getting some data from a database and trying to
show it? Be sure that your editor is saving the JSP in UTF-8 format.

Add the flag:
to the CATALINA_OPTS environment variable in your catalina.bat (or
equivalent) startup file.

and use:
to set the encoding on the request.

This may help:

Though you can ignore the method wich is used to set the encoding as the
above line does the same job in servlets.


----- Original Message ----- 
From: "Arnab Chakravarty" <>
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Tuesday, November 30, 2004 2:28 PM
Subject: UTF-8 Encoding in Jsp

Hi all,

I need to make my all jsp files compatible with UTF-8 Encoding and even
though I am using the directives:

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

in the jsp files, cannot make it work.

Using tomcat version 5. Is there any config changes I need to make for
the UTF-8 Encoding to work.

Please help.

Thanks in advance,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message