Re: Re:Some Unicode Characters are not displayed in my browser(IE 5.0)

From: Shigemichi Yazawa (yazawa@globalsight.com)
Date: Sun Jun 16 2002 - 14:29:12 EDT


At Sun, 16 Jun 2002 03:37:43 +0300,
Altug B. Altintas <altug.altintas@koubm.org> wrote:
> > i shouldn't use UTF-8 or UTF-16 while String conversions, like
> >
> > > fileid = new String(temp.getBytes(),"UTF-8");

This is a hack you need to perform in your Servlet code to get correct
characters the user submitted in HTML forms.

> > or like this
> >
> > byte[] byteArray = someString.getBytes("UTF-16");

This code itself isn't wrong at all.

My point was that you don't need to do all of these in your JSP
code. Page directive takes care of them instead.

-------------------
Shigemichi Yazawa
yazawa@globalsight.com



This archive was generated by hypermail 2.1.2 : Sun Jun 16 2002 - 12:59:22 EDT