Henry Lu wrote:
> Here is my code to display Greek character k - kappa:
> 
>             document.open();
>            
>             // step 4: we add a paragraph to the document
>         Paragraph p = new Paragraph("Hello" + "\\u954" + "Hello");
> 
>             document.add(p);
> 
> But here is the RTF output:
> 
> Hello\u954Hello
> 
> Any idea?

Yes, "\\u954" is the way to write "\u954".
You are escaping the '\' character by writing "\\".
Use "Hello\u03baHello" if you want a kappa between
Hello and Hello. Note that this is NOT iText related,
general JAVA knowledge.
br,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to