You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by JAPISoft <ed...@japisoft.com> on 2005/10/21 21:30:40 UTC
Problem with Eastern european characters
Hello,
I'm using FOP and I have the following problem :
I transform a .FO to a PDF but this .FO contains Eastern european
characters (ISO-8859-2/UTF-8 compatible), when looking at the resulting
PDF I have
a '#' for each eastern character. If I try another output different of
PDF, the resulting document is correct.
For remark : The PDF is correct if I use western european characters
(like ISO-8859-1).
This is as if the PDF font was ignoring my eastern characters. But I
feel the problem is in the output way, because eastern european
characters may require two encoding bytes.
When using the (org.apache.fop.apps) Driver class, I have noticed that
the output must be an OutputStream, so this is not character compatible
but byte only compatible, it seems unicode cannot be processed correctly ?
How an I process such characters ?
Thank you in advance,
Best regards,
A.Brillant
Re: Problem with Eastern european characters
Posted by JAPISoft <ed...@japisoft.com>.
Thank you sir,
I was thinking to the output way because opening for instance a PS
output I had in a full text the character # that's why I was
thinking to a problem for encoding unicode, but indeed PDF is half text
and half binary.
Best regards,
A.Brillant
J.Pietschmann wrote:
> JAPISoft wrote:
>
>> I transform a .FO to a PDF but this .FO contains Eastern european
>> characters (ISO-8859-2/UTF-8 compatible), when looking at the
>> resulting PDF I have
>> a '#' for each eastern character.
>
> [...]
>
>> This is as if the PDF font was ignoring my eastern characters. But I
>> feel the problem is in the output way, because eastern european
>> characters may require two encoding bytes.
>
>
> Your feeling isn't quite correct. Check the FAQ:
> http://xmlgraphics.apache.org/fop/faq.html#pdf-characters
>
>> When using the (org.apache.fop.apps) Driver class, I have noticed
>> that the output must be an OutputStream, so this is not character
>> compatible but byte only compatible, it seems unicode cannot be
>> processed correctly ?
>
>
>
> PDF isn't text, it is a binary format. For details, check the PDF spec.
>
> J.Pietschmann
>
>
> .
>
Re: Problem with Eastern european characters
Posted by "J.Pietschmann" <j3...@yahoo.de>.
JAPISoft wrote:
> I transform a .FO to a PDF but this .FO contains Eastern european
> characters (ISO-8859-2/UTF-8 compatible), when looking at the resulting
> PDF I have
> a '#' for each eastern character.
[...]
> This is as if the PDF font was ignoring my eastern characters. But I
> feel the problem is in the output way, because eastern european
> characters may require two encoding bytes.
Your feeling isn't quite correct. Check the FAQ:
http://xmlgraphics.apache.org/fop/faq.html#pdf-characters
> When using the (org.apache.fop.apps) Driver class, I have noticed that
> the output must be an OutputStream, so this is not character compatible
> but byte only compatible, it seems unicode cannot be processed correctly ?
PDF isn't text, it is a binary format. For details, check the PDF spec.
J.Pietschmann