1 Reply Latest reply on Jun 5, 2006 2:10 AM by tsangcn

    how to show in chinese?

    cy d Newbie

      I run the JBoss successfully,howerver,I want to run the page which in Jsp
      write .When I show the page ,how can I configure it which contains chinese?
      Now I can see the English letter successfully,while chinese cannot see?
      why?
      I am very worried ,and I deeply need your help.Thank you!

        • 1. Re: how to show in chinese?
          tsangcn Newbie

          There is nothing related to JBoss in this matter. This is very basic JSP coding. Please refer to your text book on JSP.

          The default charset of JSP is ISO-8859-1 which can display English and some European letters. If you want to display both traditional and simplifed Chinese at the same time, you can put the following at the beginning of your JSP

          <%@ page contentType="text/html; charset=UTF-8" %>

          and, better have the following in your html coding

          <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>


          If you want to display both only traditional Chinese, you can use UTF-8 or big5 as the charset.

          If you want to display both only simplified Chinese, you can use UTF-8 or gb18030 as the charset. Note, gb18030 may also allow traditional Chinese, but I have not tried it. Becuase I prefer UTF-8.

          Thanks.