Chinese characters Display

Hi,

I am getting some text from DB2 which is chinese/japanese text and then want to display this in JSP. I am setting the UTF-8 character encoding in JSP and pageEncoding also. like as follows:

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

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<%

request.setCharacterEncoding("UTF-8");

%>

<html:html>

<HEAD>

<META http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<LINK href="/ZwebWeb/theme/Master.css" rel="stylesheet" type="text/css">

<LINK href="/Zweb/stylesheet/Zwebstyle.css" rel="stylesheet"

type="text/css">

<TITLE>Phrase</TITLE>....................

I tried a lot with setting different things like chaning the chinese Big5 and stuff like that in browser setting. But still it doesn't work. I am using a javabean also to populate the data in JSP.So I am getting the junk charaters. Can anybody tell me changes reuired anywhere? I am using WSAD5.0

Thanks

Muks

[1284 byte] By [Muksa] at [2007-10-2 18:06:52]
# 1

Some obvious questions to verify:

1. Can you display Chinese characters correctly if they are contained in the JSPs directly (not fetched from the DB)?

2. Is the data stored correctly in the database?

3. Is there conversion required between the database and the JSPs - if so, does that conversion work correctly?

one_danea at 2007-7-13 19:26:22 > top of Java-index,Desktop,I18N...