Hello Souravm!

Have just answered a similar question, only it was
about EUC-KR charset, just replace EUC-KR for UTF-8
in the following:

=======================================================
Hello Ramesh!

Especially for this case I have
http://tagunov.tripod.com/i18n/i18n.html,

but to be short: when IBM releases a
servlet 2.3 websphere it will finally
get easier,

and for now, AFAIK, the best way to go is:

String preN = request.getParameter("n");
String n = preN != null ?
   new String(
     preN.getBytes("ISO8859_1"),
     "EUC-KR"
   ) : null;

(I tried to ask people for a better solution
 at websphere forum
([EMAIL PROTECTED])
 and their newsgroup
(news://news.software.ibm.com/ibm.software.websphere.usergroup)
 and got no answer,
 anyone knows any other Websphere mail list/news group?
 <[EMAIL PROTECTED]> seems to be dead)

I heard that Websphere 4.5 is expected this spring,
and maybe it will be 2.3 and we'll be able just
get away with

request.setCharacterEncoding("EUC-KR");

like on any other Servlet 2.3 container.
==================================================
s> Hi All,

s> I'm using WebSphere's application server 4.0 on linux.
s> I'm setting the content type as charset=UTF-8.
s> In the linux OS I'm setting my locale to en_US.utf8 before starting the
s> application server.

s> I'm entering a japanese string from one form (user entered) and printing
s> the same string in the next form. It does not work. Where as if I try to
s> print a hard coded Unicode string it works fine.

s> Can anybody tell me what could be the problem ?

s> Regards,
s> Sourav



--
Best regards,
 Anthony                            mailto:[EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to