Vietnamese Characters problems in JSP Report. Chinese Thai OK

Discussion in 'JSP' started by mrvora, Oct 20, 2009.

  1. mrvora

    mrvora New Member

    Joined:
    Oct 20, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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.
     

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