Chinese « Character « JSP-Servlet Q&A

1. How to generate Chinese characters from a Java servlet?

My servlet looks like this

  protected void processRequest(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException
    PrintWriter out=response.getWriter();

    out.println("\u5982 ??\n");

2. Chinese Character problem

3. chinese character

6. 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 ...