If it works with \u00E8 then the problem is the conversion from your
encoding to a Java String.

Best Regards,
Paulo Soares

----- Original Message -----
From: "Trevor Linton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 11, 2003 23:11
Subject: [iText-questions] Problem with extended characters


Hi,

I'm trying to display characters in extended LATIN like � with in my
PDF, although they are not appearing.  I've tried both a Phrase, Chunk
and Paragraph as well as using PdfContentByte with the showText methods
however when I open the PDF it just simply does not show the character.
I've tried setting the encoding type in the BaseFont to CP1250-CP1257
and IDENTITY_H without success.

I have been able to show the character using the \u00E8 unicode escape
literal, however since i'm taking in dynamic text i'm not sure how to
render extended characters.

I know the data is intact because I can encode it using URLEncoder than
write the encoded data to the PDF and it appears as the correct URL
encoded string (i've also tried with BASE64 Encoding and it worked
correctly as well).

My understanding of Unicode is limited however I was under the
impression that all Java strings are stored as unicode which means
passing in the String into the PDF system should work naturally without
any intervension. Am I doing something incorrect or is there another
step I need to preform?



Thanks in advance!
- Trevor




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to