Get the code from the CVS. With it you can add in the StyleSheet the parameter "encoding". You'll also need a font with the chinese characters registered in FontFactory.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Alex Chew > Sent: Monday, November 14, 2005 8:26 AM > To: [email protected] > Subject: [iText-questions] HTMLWorker cannot output unicode-encoding > > I am working on a task to covert html fragment to pdf using > iText HTMLWorker. i put some unicode of chinese words such > as \u80CC\u666F in a String and try to parse it using > worker.parse(stringReader) method, but i got nothing output. > > I tried chinese words directly, it replaced by "?". > > It seems method SimpleXMLParser.parse(SimpleXMLDocHandler > doc, InputStream in) detects source encoding, but no call to > it from HTMLWorker. > > How can i get Chinese output correctly ? > ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
