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
