Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Chinese String display problem  RSS feed

 
Muks Sam
Ranch Hand
Posts: 47
Java MyEclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!