----- Original Message -----
Sent: Tuesday, November 27, 2001 6:39
PM
Subject: Re: utf-8 charset problem
It's hard to say without seeing the code, but I would suspect it's
related to your selection of UTF-8.
When setting the output encoding for the HTML form, you'll need to do
something like...
response.setContentType ("text/html;
charset=UTF-8"); // NOTE: UTF-8, with a hyphen
But when processing strings in Java itself you need to use the name UTF8,
i.e.,
new InputStreamReader (response.getInputStream(),
"UTF8"); // NOTE: UTF8, no hyphen
These subtle differences between the encoding representations might be
the cause of your problem.
Hope this helps
Steve.
S t e p h e n
H o l m e s
Localisation Development Manager
Net Directory Services
International Product Development
Tel: +353 (1) 241 5732
Fax: +353 (1) 241
5749
>>> [EMAIL PROTECTED] 27/11/2001 08:50:30
>>>
hi everybody,
i am working with tomcat 4 b7
on win 2000 and jdk 1.3
my jsp pages should support both japanese and
chinese characters as
well as latin chars.Thus, i want to set my Jsp pages'
charset to UTF-8.
However, when i do so i am having the below
exception:
org.apache.jasper.compiler.ParseException: Cannot read file:
ze file
at
org.apache.jasper.compiler.JspReader.pushFile2(JspReader.java:275)
at
org.apache.jasper.compiler.JspReader.(JspReader.java:316)
at
org.apache.jasper.compiler.Parser.(Parser.java:137)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:213)
....
and
it goes on..
can any one tell me what does this mean and how can be
solved?
Thanks in advance.