tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: Tomcat 3.3 deployment - last minute problem
Date Tue, 18 Dec 2001 22:29:24 GMT
The only thing that I can think of is that your javac doesn't support
the -encoding switch.  Is it possible that you have an old copy of tools.jar
somewhere?  Jasper writes out the .java file in UTF8 encoding, which is then
passed to javac to compile to a .class.  If javac is trying to read the
.java file as iso-latin-1, then you'd see something like you're reporting.
You might try using Jikes.

Tomcat's JspWriter doesn't do any encoding.  It just (eventually) passes the
chars to the result of calling response.getWriter.  This means that the
encoding should the same as for a servlet (which you've reported does work).

I can't personally reproduce your problem on either Windows or Solaris, so I
don't know how much more help I can be.  The main files involved are
src/facade22/org/apache/tomcat/facade/JspInterceptor.java and
src/share/org/apache/jasper/compiler/Compiler.java, if you want to dig
through the code.
----- Original Message -----
From: "Renato" <webmaster@cienciapura.com.br>
To: <tomcat-dev@jakarta.apache.org>; <tomcat-user@jakarta.apache.org>
Sent: Tuesday, December 18, 2001 6:27 PM
Subject: Re: Tomcat 3.3 deployment - last minute problem


> Hi all,
>
> I'm investigating this problem and may found something. The html that is
> pushed to my browser is definitely pure Unicode ( UTF8 ), so somehow the
> HTML bytes are not been properly translated to chars. Where can I look in
> the code to make some tests ?
>
> Thanks
> Renato.
>
> > Reply-to: "Tomcat Developers List"
> > From: "Renato"
> > Date: Fri Dec 14 15:19:28 2001
> > To: "Tomcat Developers List" ,
> > Tomcat Developers List ,
> > ,
> > Subject: Re: Tomcat 3.3 deployment - last minute problem
> >
> > Hi,
> >
> > This is what I'm using:
> >
> >
> >
> > I saw the servlet generated in the work directory and it actually write
> the
> > response.setContentType("text/html;charset=ISO-8859-1")
> >
> > ( default type in server.xml is set to ISO-8859-1 too )
> >
> > How can I know the charset of Linux ? ( I'll STW of course.. :)) )
> >
> > Thanks for the promptness !
> >
> > On Fri, 14 Dec 2001 08:48:31 -0800 (PST), escreveu :
> >
> > > On Fri, 14 Dec 2001, Renato wrote:
> > >
> > > > *** HTML pages with latin characters don't display correctly on
Linux
> > ***
> > > >
> > > > ( JSP file with: )
> > > > Ex:
> > áéíóú
> >
> > > >
> > > > It's maybe a problem with the locale variables on my Linux, which I
> > don't
> > > > quite understand ( tried LC_ALL, LANG, LC_CTYPE and it didn't work )
> or
> > > > Tomcat itself.
> > >
> > > Do you set the charset in the page
> > > setContentType("text/html;charset=8859-??") or the jsp equivalent ?
> > >
> > > What charset do you use to write the page ? ( i.e. UTF or 8859-?? ) ?
> > >
> > > There are few variables:
> > > - Java default charset ( which is typically the same as the OS
charset).
> > > This is what jasper uses to read the page from disk. The page is
> converted
> > > to UTF by the reader. ( you can override the charset used on each
page,
> > > don't remember the directive )
> > >
> > > - output charset. This is specified in setContentType() or
> setCharEncoding
> > > on the response, and is used to convert from UTF to the target
charset.
> > >
> > >
> > > Costin
> > >
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-dev-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message