Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JSP (http://www.go4expert.com/forums/jsp/)
-   -   Vietnamese Characters problems in JSP Report. Chinese Thai OK (http://www.go4expert.com/forums/vietnamese-characters-jsp-report-t19824/)

mrvora 20Oct2009 14:54

Vietnamese Characters problems in JSP Report. Chinese Thai OK
 
Hi,
Till now our application was using Chinese and Thai characters. We used GB2312 charset and it worked verywell. But now we have got requirement to add vietnamese characters aswell. I tried different combinations of charactersets. Main concern is report generaion which will have all characters in single report. With UTF-8, Vietnamese comming correctly. With GB2312, chinese and thai coming out correctly.
Any solution to this where i can disply Vietnamese,chinese and thai characters in single report. We have JSP which generates report.

Sample Code:

<%@ page language="java"
import="javax.ejb.*,
javax.naming.*,
com.rmisasia.reports.*"
contentType="application/vnd.ms-excel"
%>
<head>
<meta http-equiv=Content-Type content="text/html;charset=GB2312">
.
.
.
.
ps = con.prepareStatement("SELECT * FROM TMP_ALL_NAMETYPE ORDER BY SEQ_NO");
rs_alltype =ps.executeQuery();
while(rs_alltype.next())
{
/////Here some cell will have chinese, SOme will have thai and some will have VIETNAMESE column data.
}

ANY CHANGES REQUIRED AT DB SIDE?

Appreciate response of expert.


All times are GMT +5.5. The time now is 06:27.