Hi Anthony,
Fianlly i solved the problem.
thanks a lot for your help.
I want to share my experiences with my mailing-list-mates,
may be someone else might get help.
Though at first it seems too complicated, actually it was very simple.
So my lesson from this experience is that:
"first try the simplest possible way, if it doesn't work then try other
methods"
now, when i replaced the charset=utf-8 setting with "big5",
then entering some test japanese characters , surprisingly it worked.
At the beginning i thought," in order to be able to use multiple charsets i
need to use
unicode encoding", but in reality it is not needed.
I didn't understand exactly how it works, but i guess it is something to do
with my OS 's default charset.
in addition , when the page receives a character other than the set
harset( big5 in my case), it automatically
adjust itself to unicode encoding, so no need to explicitly define the
unicode coding at the top of the jsp page.
if you do so, then whole thing becomes garbled.
Anyway Anthony thanks a lot for your help.
best regards :)
----- Original Message -----
From: "Anthony Tagunov" <[EMAIL PROTECTED]>
To: "yilmaz" <[EMAIL PROTECTED]>
Sent: Saturday, December 01, 2001 4:07 AM
Subject: Re[2]: Cannot read file: ze file
> Hello yilmaz,
>
> Thursday, November 29, 2001, 7:46:00 PM, you wrote:
>
> y> Hi Anthony,
> y> thank you very very much for your detailed explanation :)
> y> you helped me a lot,
> y> As you said , with windows notepad editor i opened and
> y> re-saved my jsp file with utf-8 encoding,
> y> now another proble arose :(
> y> this time the data entered by the user from a html form(inside the jsp
file)
> y> are corrupted.When i remove the
> y> "contentType="text/html; charset=utf-8"
> y> from the jsp file, the dynamic data is displayed okey , but this time
> y> the static characters on the jsp file(html content) are corrupted.
> y> how to fix this problem.
> y> i am posting one of my jsp file for your reference.
> y> please guide me, i am stuck here .
> y> everything except this okey, jsut because of this
> y> i can't hand this application to our customers.
> y> thanks a lot for your help again
> y> best regards :)
>
> The short answer is
>
> request.setCharacterEncoding("utf-8"); file://this is from Servlet 2.3
> // spec, so it will work on Tomcat 4 but not on Tomcat 3
>
> and you'll be okay.
>
> As a long answer I'm about to put a long
> document about this on the internet no later
> then monday and i'll post a link to it
> to the list.
>
>
>
> Best regards, Anton Tagunov
>
>
===========================================================================
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