• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Apache FOP and & in strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apache FOP and & in strings


  • Subject: Re: Apache FOP and & in strings
  • From: WO Dev <email@hidden>
  • Date: Tue, 5 Jun 2007 14:41:34 +0200

Actually I'm passing utf-8 strings into fop, the the fop xml file is declared as iso-8859-1:
<?xml version="1.0" encoding="iso-8859-1" ?>


and if I try to declare it using utf-8 like
<?xml version="1.0" encoding="utf-8" ?>

I got:
**** Start creating file
[ERROR] Logger not set
[WARNING] Screen logger not set - Using ConsoleLogger.
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
WARN [WorkerThread6] - Erreur lors de la generation du PDF : org.apache.fop.apps.FOPException: Invalid byte 1 of 1-byte UTF-8 sequence.
**** End creating file


If I leave the encoding to iso (and remove all & for now) I got the pdf but with some # and weird characters... It seems I have to choose a specific font or font type, but as I can't find the documentation to fop, I don't know what parameter="value" to add:(

Can't I ask fop to take utf-8 and generate utf-8?

Xavier



hi

what is the encoding of your xml file (or xsl) and/or the fop exception?
maybe you can try to replace the & with the encoding &quot; ?


oliver

On 6/5/07, WO Dev <email@hidden> wrote:
Hello,

I couldn't find the answer on the FOP archives, so I'm posting to
this list as some of you know FOP (a lot better than me;))

I'm trying to figure out how to make a pdf using FOP...
Well actually I think I'm pretty close, but I don't even know how it
looks like as there's still one crash:

I have some text with & inside, so I was able to make them to work by
using <![CDATA[my_string]]>.

But I also have some images with a & in their names like:
<fo:external-graphic src="url(/Path/1&2.jpg)"/>

So FOP crash on that...

I can't change the name of the images, how can I make FOP to work
with this name?

Thanks for your help

Xavier

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden



--
oliver egger

dienerstr. 75 - 8004 zürich - switzerland
http://www.egger-loser.ch
mobile +41765795005


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Apache FOP and & in strings (From: WO Dev <email@hidden>)
 >Re: Apache FOP and & in strings (From: "Oliver Egger" <email@hidden>)

  • Prev by Date: Re: Apache FOP and & in strings
  • Next by Date: Re: My first web app... (still)
  • Previous by thread: Re: Apache FOP and & in strings
  • Next by thread: Missing class after restore
  • Index(es):
    • Date
    • Thread