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 Myriam Delperier <my...@ajlsm.com> on 2005/11/16 14:10:08 UTC
generated pdf page is in iso-8859-1
hi,
i've got a .fo file like this
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
....
</fo:root>
I transform it in pdf with fop and myweb browser tells me the encoding
is iso-8859-1 but for some url links reasons,
I need the file to be in utf-8.
is there something I can do ?
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: generated pdf page is in iso-8859-1
Posted by Myriam Delperier <my...@ajlsm.com>.
Glen Mazza wrote:
| | What happens when you open the PDF file with Adobe Acrobat
| | directly, and not using the browser?
||Are you getting the same
| | result opening the PDF with both IE and Firefox?
acrobat, ie, firefox give me the same result
my problem was that i've in my fo :
<fo:basic-link
external-destination="resultats-in.html?q=finstitutiontype:|Service
général|&base=institution&from1=rechterm&sf=ftitle">...</fo:basic-link>
and the result of the link was
resultats-in.html?q=finstitutiontype:|Service%20g%e9n%e9ral| whereas I'm
waiting for :
resultats-in.html?q=finstitutiontype:|Service%20g%C3%A9n%C3%A9ral|
I can solve my problem with this :
<fo:basic-link
external-destination="http://tourny:8082/mpf/pub-fr/resultats-in.html?q=finstitutiontype:|Service+g%C3%A9n%C3%A9ral|&base=institution&from1=rechterm&sf=ftitle">Service
général</fo:basic-link>
but I thought I woudn't have to encode this url in the .fo if the pdf
file was already in utf-8
| | If the
| | PDF is being returned from a web app, my suspicion is that a wrong
| | response header value is being sent to the browser.
mypdf is generated by a cocoon application with a fo2pdf serializer, but
everything else in the appli is utf-8, that's why I thought the encoding
pb could be resoved by fop
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: generated pdf page is in iso-8859-1
Posted by Glen Mazza <gm...@apache.org>.
What happens when you open the PDF file with Adobe Acrobat directly, and
not using the browser? Are you getting the same result opening the PDF
with both IE and Firefox?
Is this just an annoying message, or is a corrupted/unusable PDF returned?
It very well could be, but I was unaware that the encoding in the source
FO file somehow makes its way to the PDF document. If the PDF is being
returned from a web app, my suspicion is that a wrong response header
value is being sent to the browser.
Glen
Myriam Delperier wrote:
> hi,
> i've got a .fo file like this
> <?xml version="1.0" encoding="UTF-8"?>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> ....
> </fo:root>
>
> I transform it in pdf with fop and myweb browser tells me the encoding
> is iso-8859-1 but for some url links reasons,
> I need the file to be in utf-8.
>
> is there something I can do ?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org