Hi,
 
The text i'm trying to insert to my RTF file contents some specific characters like apostrophe. (Actually the text come from a copy/past from MS Word it is stocked in a MySql DB and recover by my java pg to be export in a rtf file) Those specific characters are not interpreted correctly by iText and it display empty squares instead. (even if i use a BaseFont)
 
I've tried this :
 
BaseFont helvetica = BaseFont.createFont("Helvetica", BaseFont.CP1252, BaseFont.NOT_EMBEDDED);
Font fieldValueFont = new Font(helvetica, 11, Font.NORMAL, Color.BLUE);
document.add(new Chunk("L\u0092AMOUR", fieldValueFont));
 
and get what you have in the attached file (testApostrophe.rtf)
 
Did anybody have had this problem and get a solution ?
 
Tanks,
 
Laurent
 
 


Do you Yahoo!?
Make Yahoo! your home page

Attachment: testApostrophe.rtf
Description: testApostrophe.rtf

Reply via email to