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 Lekha Shankara <Le...@Sun.COM> on 2001/04/03 23:44:17 UTC

UTF8 data incorrect when generating PDF using FOP

Hi All,
    
    Please can someone help me with this problem I am encountering when trying to generate 
PDF from an xml using FOP.

    The xml file has some UTF8 data.Since the xml file has UTF8 data,I have the
following as the first line in my XML.
<?xml version='1.0' encoding='UTF-8'?>

When trying to generate pdf from command line using 

java org.apache.fop.apps.XalanCommandLine <xml file> <xsl file> <output pdf>

the pdf thus generated displays the UTF8 data incorrectly.The UTF8 data alone is
displayed as ##### where as everything else on the PDF is correct.

Is there any way I can display the UTF8 data correctly when generating PDF 
using FOP?

Any suggestion would be greatly appreciated.


Thankyou,
Regards,
Lekha.



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: UTF8 data incorrect when generating PDF using FOP

Posted by Kelly Campbell <ca...@merlot.channelpoint.com>.
Lekha,

See my earlier answer about using Japanese character in FOP. The
short version:

Upgrade to Fop 0.18.1
Look at docs/examples/advanced/cid-fonts.pdf for an example, and
instructions

-Kelly

On Tue, Apr 03, 2001 at 02:44:17PM -0700, Lekha Shankara wrote:
> Hi All,
>     
>     Please can someone help me with this problem I am encountering when trying to generate 
> PDF from an xml using FOP.
> 
>     The xml file has some UTF8 data.Since the xml file has UTF8 data,I have the
> following as the first line in my XML.
> <?xml version='1.0' encoding='UTF-8'?>
> 
> When trying to generate pdf from command line using 
> 
> java org.apache.fop.apps.XalanCommandLine <xml file> <xsl file> <output pdf>
> 
> the pdf thus generated displays the UTF8 data incorrectly.The UTF8 data alone is
> displayed as ##### where as everything else on the PDF is correct.
> 
> Is there any way I can display the UTF8 data correctly when generating PDF 
> using FOP?
> 
> Any suggestion would be greatly appreciated.
> 
> 
> Thankyou,
> Regards,
> Lekha.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org

-- 
Kelly A. Campbell              Software Engineer
<ca...@merlotxml.org>           ChannelPoint, Inc.
<ca...@channelpoint.com>        Colorado Springs, Co.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org