• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Chinese String display problem

 
Ranch Hand
Posts: 47
MyEclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic