You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Renato <we...@cienciapura.com.br> on 2001/12/14 14:40:37 UTC

Tomcat 3.3 deployment - last minute problem

Hi all,

I have one last problem that prevents me from upgrading a big user base 
from Tomcat 3.2.4 to Tomcat 3.3 ( which will be the last nightly build ).

*** HTML pages with latin characters don't display correctly on Linux ***

( JSP file with: )
Ex:   <p>�����</p>

I'm not quite sure if it's a bug or no. Here are some different scenarios 
and what happens:

- in Tomcat 3.2.4 it works ( someone told me 3.2.x charset is broken 
anyway )
- in Tomcat 3.3 installed on Window it works.
- in Tomcat 3.3 installed on Linux ( Red Hat 7.2, tested with IBM, Sun, 
JRockit JVM ) it doesn't work.

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. 

Any hints ? 

Thanks
Renato - Brazil

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat 3.3 deployment - last minute problem

Posted by Renato <we...@cienciapura.com.br>.
Hi,

This is what I'm using:

<%@ page contentType="text/html; charset=ISO-8859-1" %>

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), <co...@covalent.net> escreveu :

> On Fri, 14 Dec 2001, Renato wrote:
> 
> > *** HTML pages with latin characters don't display correctly on Linux 
***
> >
> > ( JSP file with: )
> > Ex:   <p>�����</p>
> >
> > 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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat 3.3 deployment - last minute problem

Posted by Renato <we...@cienciapura.com.br>.
Hi,

This is what I'm using:

<%@ page contentType="text/html; charset=ISO-8859-1" %>

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), <co...@covalent.net> escreveu :

> On Fri, 14 Dec 2001, Renato wrote:
> 
> > *** HTML pages with latin characters don't display correctly on Linux 
***
> >
> > ( JSP file with: )
> > Ex:   <p>�����</p>
> >
> > 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:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Tomcat 3.3 deployment - last minute problem

Posted by co...@covalent.net.
On Fri, 14 Dec 2001, Renato wrote:

> *** HTML pages with latin characters don't display correctly on Linux ***
>
> ( JSP file with: )
> Ex:   <p>áéíóú</p>
>
> 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:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Tomcat 3.3 deployment - last minute problem

Posted by co...@covalent.net.
On Fri, 14 Dec 2001, Renato wrote:

> *** HTML pages with latin characters don't display correctly on Linux ***
>
> ( JSP file with: )
> Ex:   <p>áéíóú</p>
>
> 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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>