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
