Kewl! So I must add <%@ page pageEncoding="UTF-8"%> to all the "included/common" JSP files! I cannot imagine how can I be so lazy!!! Thanks :)
--- Yansheng Lin <[EMAIL PROTECTED]> escribi�: > > >And, of > >course, there can be only one <%@ page directive, > at > >the "root" JSP page. > > um, might not understand you correctly. you can > have as many as you want > actually. > i.e., <%@ page pageEncoding="utf-8" %> > <%@ page contentType="text/html;charset=utf-8" %> > <%@ page import="myOwnClass" %> > ... > > Hope this helps:). > > -Yan > > -----Original Message----- > From: Ivan Montoro > [mailto:[EMAIL PROTECTED] > Sent: Monday, April 05, 2004 11:33 AM > To: Tomcat Users List > Subject: RE: JSP include directive and UTF-8 files > in Tomcat 5 > > > The fact is that all JSP pages are created in the > work/ directory in UTF-8, at least with Tomcat > 5.0.19 > (javaEncoding is UTF-8 by default). pageEncoding > controls the way Tomcat reads the source file, but > it's useless with the <[EMAIL PROTECTED] directive. And, of > course, there can be only one <%@ page directive, at > the "root" JSP page. > > By the way, I cannot find the Class who controls > this > tag at cvs.apache.org (this is a gigantic project!), > any clues? > > --- Mike Curwen <[EMAIL PROTECTED]> wrote: > So: > > <%@ page pageEncoding="utf-8" %> > > > > would be the correct way to handle the case of > > including files with > > utf-8 characters, except Tomcat ignores > > pageEncoding? (for all files? > > for non-JSP files?) > > > > > > > > > -----Original Message----- > > > From: Ivan Montoro > > [mailto:[EMAIL PROTECTED] > > > Sent: Monday, April 05, 2004 12:07 PM > > > To: Tomcat Users List > > > Subject: RE: JSP include directive and UTF-8 > files > > in Tomcat 5 > > > > > > > > > Hi Mike, > > > > > > Nope, pageEncoding does not work either. JSP > > syntax > > > 1.2 > > > > > > (http://java.sun.com/products/jsp/syntax/1.2/syntaxref1210.htm > > > l#1001361) > > > stands that this is the "page source character > > > encoding", and javaEncoding at web.xml controls > > the > > > encoding for resulting .java files at work/ > > directory. > > > I'm afraid this is a bug in the <[EMAIL PROTECTED] JSP > > > implementation, opening all files in ISO-8859-1. > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > ___________________________________________________ > Yahoo! Messenger - Nueva versi�n GRATIS > Super Webcam, voz, caritas animadas, y m�s... > http://messenger.yahoo.es > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > ___________________________________________________ Yahoo! Messenger - Nueva versi�n GRATIS Super Webcam, voz, caritas animadas, y m�s... http://messenger.yahoo.es --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
