Hello yilmaz!

Monday, December 31, 2001, 10:00:59 AM, you wrote:

y> hi everybody,
y> does someone have or know a free "big5 to utf-8 converter" program,package,bean, 
script
y> or whatever? In my servlets and jsps i use
y> String str=new String(str.getBytes("8859_1"), "big5");
y> to convert input parameters to big5.
y> However, there are some chinese characters that can't be converted with this.
???
The browser sends something that servlet container can not recogineze?
Sounds strange, did I get you right?
y> So i want to key-in the utf-8 representation of a chinese character instead of the 
character itself.
y> do you have any idea?
Well, let your pages be all utf-8 themselves,
then the browser will send everything in UTF-8 converted to %xy-s
and you'll happily do

String str=new String(str.getBytes("ISO8859_1"),"utf-8");

or even better

request.setCharacterEncoding("UTF-8");

if you're using a Servlet 2.3 container.

Did I understand whan you have written correctly?

y> Could someone show me a piece of code please?
y> Thanks in advance
y> Best regards :)


Best regards,
 Anton                            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