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

From: Shigemichi Yazawa ([email protected])
Date: Sat Jun 15 2002 - 19:00:10 EDT


At Sat, 15 Jun 2002 17:13:52 +0530,
Sreedhar.M <[email protected]> wrote:
>
> Please let me know how to display all the characters in my browser.

You didn't tell us which characters are not displayed correctly, but ...

> fileid = new String(temp.getBytes(),"UTF-8");

this code is harmful.

<%@ page contentType="text/html; charset=UTF-8" %>

the above page directive instructs JSP engine to convert Java String
into UTF-8. It is unnecessary to fiddle with character encodings like
this in JSP, unlike in Servlet.

-------------------
Shigemichi Yazawa
[email protected]



This archive was generated by hypermail 2.1.2 : Sat Jun 15 2002 - 17:29:05 EDT