Thanks both Konstantin and Rashmi.
The recommended article covers all aspects of non-Latin language Java web
development. I already did all recommended steps whenever they were applied.
So, why I didn't get the character display correctly? The Java web
applications I have always use some sort of page composite technique, Tiles
for example. The page tag <[EMAIL PROTECTED] contentType="text/html; charset=UTF-8" %>
was only used in the template JSP file. but not every page component JSP
files. After applied the JSP page tag to the JSP file with Chinese
characters, the problem is solved.
Thanks again.
Vernon
----Original Message Follows----
From: "Konstantin Breu" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <users@tomcat.apache.org>
To: "'Tomcat Users List'" <users@tomcat.apache.org>
Subject: AW: Non-Latin Character Display
Date: Sat, 17 Mar 2007 23:41:53 +0100
The original post was this:
http://mail-archives.apache.org/mod_mbox/tomcat-users/200703.mbox/%3cBAY103-
[EMAIL PROTECTED]
(text also quoted below)
I have tested it with Eclipse 3.2 and Tomcat 6 (jre1.5.0_10), with chinese,
korean and hebrew characters, it works... Which Tomcat and JDK version are
you using? I can do a further test... ;-)
There might also be some conversion of the file before it is stored and
compiled at the server...
(for example conversion when commiting it to a versioning system)
this is the text of the original post:
> I have several Java web applications on Tomcat where non-Latin characters
> function properly with only one exception. Non-Latin characters, Chinese
in
> this case, can be displayed properly thorough the JSTL message tag. The
> related configuration are followings:
>
> HTML:
> JSP: <%@ page contentType="text/html;charset=UTF-8" language="java" %>
>
> The applications can take Chinese character inputs correctly with a
filter
> of converting request character encoding to "UTF-8".
>
> The only problem is that Chinese characters don't displayed properly when
> they are directly typied on a JSP file. I have set the Eclipse file text
> encoding to utf-8 and the characters are shown correctly in the IDE.
>
> I believe that is a TC configuration related issue. After having "set
> JAVA_OPTS= -Dfile.encoding=UTF-8" in the catalina.bat file, nothing has
> changed.
>
> How to solve this problem?
>
> Thanks in advance.
-----Ursprüngliche Nachricht-----
Von: Rashmi Rubdi [mailto:[EMAIL PROTECTED]
Gesendet: Samstag, 17. März 2007 22:04
An: Tomcat Users List
Betreff: Re: Non-Latin Character Display
I haven't been following this thread, and don't know what the original
request / problem was but,
perhaps you may find this article useful - it's written very well IMHO.
Character Conversions from Browser to Database
http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/index.html
I'm not sure if the above will be of use to you.
Also some additional related links:
http://www.w3.org/International/O-charset.en.php
-Rashmi
----- Original Message ----
From: Vernon _ <[EMAIL PROTECTED]>
To: users@tomcat.apache.org
Sent: Saturday, March 17, 2007 1:13:23 PM
Subject: Re: Non-Latin Character Display
____________________________________________________________________________
________
No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Its tax season, make sure to follow these few simple tips
http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMMartagline
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]