0 Replies Latest reply on Dec 16, 2003 5:30 PM by harishviswanathan

    unicode character encoding for Chinese characters

    harishviswanathan

      Hi
      I am using JBoss + Tomcat + DB2. I need my application to accept, store and retrieve chinese characters. I think I have the correct character encoding set in the JSP using
      <%@ page contentType="text/html;charset=UTF-8" %>
      <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />. I also set the request encoding to be
      request.setCharacterEncoding("UTF-8");

      My DB2 is set with a codepage of 1208 (UTF-8). The JDBC driver I am using is
      COM.ibm.db2.jdbc.app.DB2Driver

      When I enter chinese characters into the input fields, it stores it in DB2 as funny characters something like '>>EO`'. When I try to retrieve it and display on the screen it shows as the same funny characters. I am kind of lost. Most of the forums I saw said as long as the DB2 is unicode and the JSP has the character encoding for the request, it should work ok. I would appreciate any help I can get.

      Regards
      HV