Why are you using UTF8 in stead on UTF16. With UTF8 you have to escape
all the characters, right?
I was on a project for a Japanese site once and we used UTF16. It was a
lot easier to work with.
Eclipse will show it to you just like normal text(Chinese). All you have
to do is set the encoding to be
UTF16 in the files properties. You still need the <%@ page
contentType="text/html; charset=UTF-16"%>
line, but it is a lot easier to read and maintain.
John
From: Pulkit Singhal [mailto:[EMAIL PROTECTED]
Subject: Re: How to display chinese chars in JSP / encoding
UTF-8 without <@page encoding> tag
I think you can set the -DFileEncoding flag or something
to be UTF-8 in the java options of the script you use to
start tomcat.
It's -Dfile.encoding=UTF-8 (or UTF8; either is acceptable).
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]