Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Chinese String display problem  RSS feed

Ranch Hand
Posts: 47
Java MyEclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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" %>
<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"

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


It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!