Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JSP (http://www.go4expert.com/forums/jsp/)
-   -   How to display Chinese character from database in JSP? (http://www.go4expert.com/forums/display-chinese-character-database-jsp-t23556/)

wktsang1 12Oct2010 22:24

How to display Chinese character from database in JSP?
 
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?

alssadi 11Dec2010 14:44

Re: How to display Chinese character from database in JSP?
 
<%@ page contentType="text/html;charset=UTF-8"%>

TRY UTF-8


All times are GMT +5.5. The time now is 20:03.