hi amin,
         i think the problem u are facing is quite
usual . by default encoding is latin and for that
purpose u will have to specify UTF-8 character
encoding in response header .i think it should work.
even if does not work send ur code so that we can
understand it in better way.

so replace ur response.setContentType("text/html;
charset=UTF-8");

regards
Sudhir Garg



amin wrote
Dear All,
 I'm building a mutilaguage website in which i use
UTF-8 as the charset for my
 servlet but the getParameter() method uses ISO-8859-1
as its default encoding
 which results in the unicode characters not found in
ISO-8859-1 are mapped
 incorrectly to different characters. Such as the
special german characters for
 each mapped to two incorrect characters. So, how can
i enforce the
 getParameter() to use UTF-8 to generate valid unicode
characters ?

Any help will be appreciated.

Regards,
 M. Amin


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year!  http://personal.mail.yahoo.com/

___________________________________________________________________________
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