��ǧ�� wrote: > > I modified dbXML example APIExample.java, change > String document = "<?xml version=\"1.0\"?>\n <test>Test</test>"; > to > String document = "<?xml version=\"1.0\"?>\n <test>���Բ��Բ���</test>"; > > It is a Chinse GB2312 string. Then I compile and run the APIExample. There is > exception in retrieveDocument call and server. > And the output is not right: I store 6 Chinese characters, but only first 3 > characters are retrived.
I would suggest modifying your XML declaration from <?xml version="1.0"?> to <?xml version="1.0" encoding="XXXXX"?> where XXXXX is explicitly the document encoding, since this error sounds suspiciously like a byte order or some other Unicode issue. Murray ........................................................................... Murray Altheim <mailto:murray.altheim@sun.com> XML Technology Center, Java and XML Software Sun Microsystems, Inc., MS MPK17-102, 1601 Willow Rd., Menlo Park, CA 94025 Rally against the evils of iceburg lettuce! Grab a kitchen knife and join the Balsamic Jihad!
