How to display Chinese character from database in JSP?

Discussion in 'JSP' started by wktsang1, Oct 12, 2010.

  1. wktsang1

    wktsang1 New Member

    Joined:
    Oct 12, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I am using Apache Tomcat 5.5 + JSP in the web server, and MS SQL Server 2000 in another database server.

    There is no problem before I resinstall the web server due to hardware failure. I am not sure if I miss some configuration that all the Chinese character stored in the database cannot display in the web correctly.

    There is no change in the JSP page, I am using '<%@ page contentType="text/html;charset=big5" %>' in the top of each jsp page, and the database field is in nvarchar type.

    Anyone please give advise for my case?
     
  2. alssadi

    alssadi Banned

    Joined:
    Dec 11, 2010
    Messages:
    41
    Likes Received:
    3
    Trophy Points:
    0
    Occupation:
    Creative director & web developer
    Location:
    Dubai
    Home Page:
    http://uaeinfographics.blogspot.com/
    <%@ page contentType="text/html;charset=UTF-8"%>

    TRY UTF-8
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice