You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Peer Brink <br...@riege.com> on 2004/01/05 13:09:28 UTC
Incorrect characters in FO / PDF under windows
Hello all,
I have a problem with incorrectly displayed characters when generating PDF from FO under windows. The problem does not occur under Linux. I generate the FO-files with saxon from docbook-xml. The wrong characters appear in headers and for example in intemized lists.
Example:
FO created under Linux:
<fo:marker marker-class-name="section.head.marker">1. Using DocBook</fo:marker>
FO created under Windows:
<fo:marker marker-class-name="section.head.marker">1.ÃÂ Using DocBook</fo:marker>
Why is there a difference between the two fo-files? Shouldn't they be equal?
Is there a problem with the xml-to-fo-generation or with the fo-to-pdf-generation?
To make it clear: windows-created pdf-files have incorrect characters when viewing the pdf under windows AND under linux. Linux-created pdf-files are correctly displayed under linux and under windows!
I'm using FOP-0.20.5.
Thanks in advance for any help,
Peer.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Incorrect characters in FO / PDF under windows
Posted by Peer Brink <br...@riege.com>.
OK, problem solved. It is a bug in the current dom4j-release (1.4). It does not occur in older versions. But it is already fixed in an actual CVS-snapshot of dom4j.
Tanks for any help.
Peer.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Incorrect characters in FO / PDF under windows
Posted by Chris Bowditch <bo...@hotmail>.
Peer Brink wrote:
> Hello all,
>
> I have a problem with incorrectly displayed characters when generating
> PDF from FO under windows. The problem does not occur under Linux. I
> generate the FO-files with saxon from docbook-xml. The wrong characters
> appear in headers and for example in intemized lists.
>
> Example:
>
> FO created under Linux:
> <fo:marker marker-class-name="section.head.marker">1. Using
> DocBook</fo:marker>
>
> FO created under Windows:
> <fo:marker marker-class-name="section.head.marker">1.ÃÂ Using
> DocBook</fo:marker>
<snip/>
Looks like an encoding problem. Perhaps you have Unicode characters in
your XML file. Instead of embedding the unicode characters in the XML
file it may be best to use a character entity reference, e.g.
Â
If this doesnt help, please let us know what encoding your XML and XSL
files are in. Thanks,
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org