Escapes are not used that way in java. Use something like this code: byte data[] = ......; // the bytes you got from the database in Big5 encoding String s = new String(data, "Big5"); // and now you have a java string in unicode
Best Regards, Paulo Soares > -----Original Message----- > From: Lily Chan [SMTP:[EMAIL PROTECTED]] > Sent: Monday, May 06, 2002 10:12 > To: [EMAIL PROTECTED] > Subject: [iText-questions] unicode problem > > I 'm now working on a java program which converts UTF-16 (java string in > Chinese) and Big5 (database content) characters to unicode value in the > format \uXXXX. The unicode characters will then feed into iText for > display. > I managed to convert > the UTF-16 and Big5 characters to unicode value in the format XXXX. > But when attaching "\u" at the beginning of each unicode character, > i.e. String theUnicode ="\u" + "XXXX"; > Compilation error "Illegal unicode escape" occurs. > > So still can't display the Chinese content from database to the PDF. > > I would like to know besides hard-coding the unicode value "\uXXXX" in the > > program, is there any other method that iText can handle non-US language, > like Chinese dynamically. > > Please help? > > Lily > > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at > http://explorer.msn.com/intl.asp. > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
