I'm trying to build a JSP/bean setup which gets simplified Chinese (GB )
from a Notes database. Here is the setup:

English Notes running on English NT server
web page encoding gb2312
Direct access to database through the Notes Java API.

The problem is that it returns garbage. I have tried playing around with
the encoding on the jsp page (using EUC_CN and others), and in the bean.
Weirdly, I can get Chinese out of the database, but then the rest of the
surrounding Chinese on the page is garbage. Or I can get the rest of the
page fine, and the Notes stuff is garbage.

I have even tried converting the database strings to a byte array and then
re-encoding them with String (byte[ ], String enc) but this doesn't seem to
work either.

Any ideas?

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to