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 "Rob Staveley (Tom)" <rs...@seseit.com> on 2003/02/03 18:34:06 UTC
Using FopServlet with ISO-8859-1
I've got an XML document encoded with ISO-8859-1 for which I have an XSL-FO
which also outputs ISO-8859-1. This works nicely using the command line Fop.
However, using the same XML and XSL with FopServlet I find that accented
characters get clobbered in the retrieved PDF. It happens with Mozilla and
IE. Any ideas?
PS: I've tried using UTF-8 as the output encoding in the XSL and get the
same problem.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
RE: Using FopServlet with ISO-8859-1
Posted by "Rob Staveley (Tom)" <rs...@seseit.com>.
Interesting. I'll have a look at the Apache settings. I found that using
UTF-8 in the XSL and XML seems to fix it. This may be something to do with
the file fetcher in the servlet, which is using a URL to fetch the file.
[Apologies.... This looks very much off topic.]
-----Original Message-----
From: Fabrizio Tringali [mailto:f.tringali@infser.it]
Sent: 03 February 2003 18:08
To: fop-user@xml.apache.org
Subject: Re: Using FopServlet with ISO-8859-1
I've got the same problem on solaris 7/8 and it was not the browser but the
web server.
I solve it setting some locale on OS, something like:
LC_COLLATE=it_IT.ISO8859-1
LC_CTYPE=it_IT.ISO8859-1
LC_MESSAGES=it
LC_MOLC_COLLATE=it.ISO8859-15
LC_NUMERIC=it_IT.ISO8859-1
LC_TIME=it_IT.ISO8859-1
hi
----- Original Message -----
From: "Rob Staveley (Tom)" <rs...@seseit.com>
To: <fo...@xml.apache.org>
Sent: Monday, February 03, 2003 6:34 PM
Subject: Using FopServlet with ISO-8859-1
> I've got an XML document encoded with ISO-8859-1 for which I have an
XSL-FO
> which also outputs ISO-8859-1. This works nicely using the command line
Fop.
> However, using the same XML and XSL with FopServlet I find that accented
> characters get clobbered in the retrieved PDF. It happens with Mozilla and
> IE. Any ideas?
>
> PS: I've tried using UTF-8 as the output encoding in the XSL and get the
> same problem.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
RE: Using FopServlet with ISO-8859-1
Posted by "Rob Staveley (Tom)" <rs...@seseit.com>.
It was indeed the default charset. I've fixed it by explicitly setting the
charset in the InputStreamReader used by the "file fetcher".
BufferedReader in = new BufferedReader(new
InputStreamReader(url.openStream(),"ISO-8859-1"));
Again, apologies for going off topic, but I hope this might be of some help
to somebody else doing similar things.
-----Original Message-----
From: Fabrizio Tringali [mailto:f.tringali@infser.it]
Sent: 03 February 2003 18:08
To: fop-user@xml.apache.org
Subject: Re: Using FopServlet with ISO-8859-1
I've got the same problem on solaris 7/8 and it was not the browser but the
web server.
I solve it setting some locale on OS, something like:
LC_COLLATE=it_IT.ISO8859-1
LC_CTYPE=it_IT.ISO8859-1
LC_MESSAGES=it
LC_MOLC_COLLATE=it.ISO8859-15
LC_NUMERIC=it_IT.ISO8859-1
LC_TIME=it_IT.ISO8859-1
hi
----- Original Message -----
From: "Rob Staveley (Tom)" <rs...@seseit.com>
To: <fo...@xml.apache.org>
Sent: Monday, February 03, 2003 6:34 PM
Subject: Using FopServlet with ISO-8859-1
> I've got an XML document encoded with ISO-8859-1 for which I have an
XSL-FO
> which also outputs ISO-8859-1. This works nicely using the command line
Fop.
> However, using the same XML and XSL with FopServlet I find that accented
> characters get clobbered in the retrieved PDF. It happens with Mozilla and
> IE. Any ideas?
>
> PS: I've tried using UTF-8 as the output encoding in the XSL and get the
> same problem.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Using FopServlet with ISO-8859-1
Posted by Fabrizio Tringali <f....@infser.it>.
I've got the same problem on solaris 7/8 and it was not the browser but the
web server.
I solve it setting some locale on OS, something like:
LC_COLLATE=it_IT.ISO8859-1
LC_CTYPE=it_IT.ISO8859-1
LC_MESSAGES=it
LC_MOLC_COLLATE=it.ISO8859-15
LC_NUMERIC=it_IT.ISO8859-1
LC_TIME=it_IT.ISO8859-1
hi
----- Original Message -----
From: "Rob Staveley (Tom)" <rs...@seseit.com>
To: <fo...@xml.apache.org>
Sent: Monday, February 03, 2003 6:34 PM
Subject: Using FopServlet with ISO-8859-1
> I've got an XML document encoded with ISO-8859-1 for which I have an
XSL-FO
> which also outputs ISO-8859-1. This works nicely using the command line
Fop.
> However, using the same XML and XSL with FopServlet I find that accented
> characters get clobbered in the retrieved PDF. It happens with Mozilla and
> IE. Any ideas?
>
> PS: I've tried using UTF-8 as the output encoding in the XSL and get the
> same problem.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org