No, the "\uXXXX" syntax is for string literals. Just like you wouldn't say,
String s = "123"; long l = s + "L"; right? :) "\uXXXX" is understood by the COMPILER, not at runtime. Lily, Paulo's answer is the correct one. -J.Teo Tobias Adamson wrote: > I'm not sure but try > String theUnicode ="\\u" + "XXXX"; > > Regards > Tobias > > -----Original Message----- > From: Lily Chan [mailto:[EMAIL PROTECTED]] > Sent: den 6 maj 2002 11: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
