but i did another test in the meantime:
-> when i edit the "addDefaultCharset"-directive of apache2 to UTF-8 it works fine with apache/jk2! but i can't change this value because of the risk to break other websites on the same server.
so i think i should be able to tell tomcat that he sould deliver this pages in utf-8. how i explained in postings below, it just says "text/html" in the header - no encoding. and therefore apache adds its standardencoding of iso-8859-1
can anybody tell me how to tell tomcat to deliver pages in a specific encoding?
greetings stefan
Edson Alves Pereira wrote:
You must check your java´s file.encoding property, maybe its setted to ISO-8859-1
---------- De: Stefan Burkard[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: quinta-feira, 5 de fevereiro de 2004 9:18 Para: [EMAIL PROTECTED] Assunto: Re: encoding-problem with tomcat, jk2, apache
hi folks
ok, i've found a tool that shows the whole http-header of my requests:
if i connect directly on tomcat (port 8080) there is a content-type-attribute in the header that says just "text/html".
if i connect via apache/mod_jk2 the attribute has the data "text/html; charset=ISO-8859-1" what is completely wrong. it should be utf-8, not iso-8859-1.
cocoon automatically inserts the code
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> into the html-page.
so the resulting question: why has apache/jk2 the wrong encoding? is there a default-encoding that is used if nothing other is specified?
greetings stefan
Yansheng Lin wrote:
Hi Stefan, you figured out this problem yet. I would like to know what
was
causing the problem:). Did you take a look at the header? Compare the
headers
generated when running tomcat standalone with running apache-tomcat to
see the
difference. (I used a Encoding Filter for my i18n application, so far
all the
development had been done on a localhost).
Good luck!
-Yan
-----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Burkard Sent: Tuesday, February 03, 2004 10:41 AM To: [EMAIL PROTECTED] Subject: encoding-problem with tomcat, jk2, apache
hello tomcat-users
i've set up a cocoon-page with tomcat, apache and jk2. everything works fine as long as i just use languages with standard-encoding iso-8859-1.
now i'm on the way to implement the russian version of the site and therefore i need to display russian (cyrillic) characters.
if i connect on tomcat-standalone with port 8080, the russian characters
are displayed correct.
but if i connect via apache and jk2, alle cyrillic characters go wrong. i think apache delivers the page with iso-8859-1 instead of utf-8.
does anybody know if this is a problem of apache or jk2 and how to solve
it???
thanks stefan
--------------------------------------------------------------------- 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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]