Thanks Anthony,
below is the header of my troublesome jsp page.

<%@  page language="java" contentType="text/html; charset=utf-8" %>
<%@ page
import="java.sql.*,java.text.DateFormat,java.lang.Math,java.util.*,com.oreil
ly.servlet.*"%>

when charset is set to big5 , there is no problem.
Since my OS is Win 2000 traditional chinese, its default charset is big5,
so  i didn't need a special editor for big5 charset.
Now you say, to set charset to utf8 i need a utf8 specific editor?
i didn't hear this before?
can you please make it clearer?
E.g where can i get it?
thanks  a lot in advance
cheers :)
----- Original Message -----
From: "Anthony Tagunov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 29, 2001 11:51 AM
Subject: Re: Cannot read file: ze file
> Hello Yilmaz!
>
> y> well i tried utf8 ,too, but hte result is same.
> y> By the way the main reason i want utf8 encoding is that
> y> my jsp files will retreive some data in chinese, japanese or latin
charsets
> y> and users will be able to enter any of these charsets into the form
fields
> y> and then
> y> those user data will be inserted into the database.At hte moment i use
big5
> y> charsets
> y> and it is working properly, but i should also enable japanese charset
input
> y> and output via JSP.
> y> According to jason hunter's book, using utf8 charset would solve this
> y> multiple charset problem.
>
> I also beleive it will!
>
> y> But it seems that it is not that easy, and there are some problems with
JSP.
>
> Well, my guess was that you had your pages in big5 encoding then just
> took an editor and changed
> <%@ page contentType="text/html; charset=BIG5" %>
> to
> <%@ page contentType="text/html; charset=UTF-8" %>
> without actually recoding the whole file to UTF-8 from BIG5.
> And according to jsp 1.1 spec contentType's charset
> determines both the charset of the HTTP response and
> the charset that your source .jsp file is coded with,
> so if you have charset=UTF-8 then your page has to be
> in UTF-8. I suggest either authoring the pages with
> some UTF-8 capable editor, or translating them from
> BIG5 (which i assume you have editors for) to UTF-8.
> I guess some Ant task already exists for this or
> may be developed.
>
> y> However, i am sure there is a solution for this problem.
>
> Sure there is :-)
> y> I must say i am a little bit disappointed when no one replied my
question.
> Maybe you should supply more information (if my guess was not
> correct). Maybe finally you could attach a small example of
> the offending .jsp too.
> y> Didn't anyone else experience multiple charset problem in JSP's ?
> I did :-) It was less with JSPs, more with Cocoon servlet and cyrillics,
it were
> windows-1251 and utf-8 coded-pages.
> y> thanks for taking time to help me.
> you're welcome!
> y> have a good day :)
> ---------------------------------
> >> y> hi everybody,
> >> y> i am working with tomcat 4 b7 on win 2000 and jdk 1.3
> >> y> my jsp pages should support both japanese and chinese characters as
> >> y> well as latin chars.Thus, i want to set my Jsp pages' charset to
UTF-8.
> >>
> >> y> However, when i do so i am having the below exception:
> >>
> >> y> org.apache.jasper.compiler.ParseException: Cannot read file: ze file
> >> y> at
org.apache.jasper.compiler.JspReader.pushFile2(JspReader.java:275)
> >> y>         at org.apache.jasper.compiler.JspReader.(JspReader.java:316)
> >> y>         at org.apache.jasper.compiler.Parser.(Parser.java:137)
> >> y>         at
> >> y>
> --
> Best regards,
>  Anthony                            mailto:[EMAIL PROTECTED]
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to