Oh hi, I researched on the following problme last night. And like you said, I
could display my Japanese UTF-8 encoded file with Tomcat correctly, but not with
Apache-Tomcat-jk2. Somehow the charset was still iso-8859-1. I couldn't figure
out why apache didn't use the UTF-8 encoding defined in httpd.conf:
AddCharset UTF-8 .utf8
So my quick fix was to change the default charset to UTF-8:
AddDefaultCharset UTF-8
After that I could see in my header, the charset is utf-8. And I could view the
Japanese hiragan's with Apache. But since all my pages were display under
utf-8, the font was kind of screwed up(utf-8 has less font support). So I don't
think I found the solution to your problem. And I couldn't spend more time on
that. Let me know if you get this one figured out.
Have fun!
-Yan
-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Burkard
Sent: Thursday, February 05, 2004 5:18 AM
To: [EMAIL PROTECTED]
Subject: 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]