Hello Dick,

Let us try to diagnose your problem..
Please clarify: are you sure you get
correct Chinese characters from the
database?

I advise you to open some file from
your jsp page (create a  os = FileOutputStream)
then create a OutputStreamWriter(os,"Big5")
and write the data you retrive from the
database there. Do you get correct
Chinese characters or gabbage?

In either case we could try to trace you
problem further.

How does the data get to the database?
If it gets there from a web page form
there's a great chance that you
just get malformed data from
request.getParameter(),
see my prev mails to the list
i've suggested ways to solve that already
or mail me privately.

DW> When my jsp retrieve the data from mysql , it cannot display the Chinese
DW> Character.
DW> Why ???
DW> What's the problem ??

DW> I already add these lines on my .jsp   :

DW> <%@ page contentType="text/html;charset=Big5" language="java" import
DW> ="java.sql.*, java.text.*, java.util.Date.*" %>

DW> <%=result.getString("job_title") %></a></td>
DW> It cannot display the chinese characteres. All become special symbol.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to