UTF-8 is an Unicode stream representation that doesn't mean anything after the text resides in a String. The constant you're looking for is BaseFont.IDENTITY_H but note that you'll need a TrueType font for this to work.
Paulo > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Lars Nagel (Trium) > Sent: Tuesday, July 24, 2007 4:49 PM > To: Post all your questions about iText here > Subject: [iText-questions] BaseFont with UTF-8? > > Hi all, > > Is it possible to set the encoding to UTF-8 / Unicode instead > of e. g. > BaseFont.CP1252. I want to pass UTF-8 to > BaseFont.createFont(...) as it > is done with BaseFont.CP1252 in the following example. > BaseFont baseFont = BaseFont.createFont(urlFont.getPath(), > BaseFont.CP1252, BaseFont.EMBEDDED); > > As there is no constant available in class BaseFont, I would like to > know the String I have to pass to the function. > > Thanks in advance, > Lars > > > -- > Lars Nagel > > Trium Analysis Online GmbH > Hohenlindenerstr. 1 > 81677 München > > Fon : +49 89 2060269 21 > Fax : +49 89 2060269 11 > Internet: www.trium.de > > Amtsgericht Muenchen, HRB 134012 > Managing Directors: > Dr. Martin Daumer, Michael Scholz Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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/
