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 Laeremans Bart <Ba...@cronos.be> on 2002/10/18 08:04:18 UTC

Euro-problem

Hey,

I'm using XSQL from Oracle to generate XML which will then be serialized into
PDF using FOP.

The coding of my XML is "ISO-8859-1".

But when I use an Euro-sign (EUR), it eithers shows me an '#' or the PDF just fails.

Has anybody ever had this problem and if so
how did U fix it ???

Thanks in advance.

Greetings,

Bart Laeremans

Re: Euro-problem

Posted by Claudio De Bernardi <cl...@icteam.it>.
I also have a similar problem
I've just replaced all euro symbols with   &#x20AC; and it  works!

Claudio

Laeremans Bart wrote:

> Hey,
>
> I'm using XSQL from Oracle to generate XML which will then be 
> serialized into
> PDF using FOP.
>
> The coding of my XML is "ISO-8859-1".
>
> But when I use an Euro-sign (EUR), it eithers shows me an '#' or the 
> PDF just fails.
>
> Has anybody ever had this problem and if so
> how did U fix it ???
>
> Thanks in advance.
>
> Greetings,
>
> Bart Laeremans
>


Re: Euro-problem

Posted by Claudio De Bernardi <Cl...@icteam.it>.
  I also have a similar problem
I've just replaced all euro symbols with   &#x20AC; and it  works!

Claudio

Laeremans Bart wrote:

> Hey,
>
> I'm using XSQL from Oracle to generate XML which will then be 
> serialized into
> PDF using FOP.
>
> The coding of my XML is "ISO-8859-1".
>
> But when I use an Euro-sign (EUR), it eithers shows me an '#' or the 
> PDF just fails.
>
> Has anybody ever had this problem and if so
> how did U fix it ???
>
> Thanks in advance.
>
> Greetings,
>
> Bart Laeremans
>


Re: Euro-problem

Posted by Guy D'haenens <gu...@xplanation.com>.
Euro-problemHi Bart,
I think you'd better use the following trick (this one always works):
  a.. in your XSL use: <fo:block  font-family="Arial">;
  b.. create xml files for each of the Arial fonts (there are 4: arial, arialbd, arialbi and ariali) (see the FOP-documentation on using TrueType-fonts)
  c.. use a userconfig.xml (don't forget to set the basedir and to use 'embed' for each of the font types)
  d.. place all font xml's AND the fonts in the basedir
  e.. make sure your code uses the userconfig (set the options)
...
and that's it. Good luck



 Don't forget to set a basedir and use 
  ----- Original Message ----- 
  From: Laeremans Bart 
  To: fop-user@xml.apache.org 
  Sent: Friday, October 18, 2002 8:04 AM
  Subject: Euro-problem


  Hey, 

  I'm using XSQL from Oracle to generate XML which will then be serialized into 
  PDF using FOP. 

  The coding of my XML is "ISO-8859-1". 

  But when I use an Euro-sign (?), it eithers shows me an '#' or the PDF just fails. 

  Has anybody ever had this problem and if so 
  how did U fix it ??? 

  Thanks in advance. 

  Greetings, 

  Bart Laeremans 


Re: Euro-problem

Posted by Jon Kofal <jo...@yahoo.com>.
Wrong.  ISO-8859-15 is the charset to use with the Euro character.

jon k

--- MARTIN Franck <fr...@c-s.fr> wrote:
> Euro-problemthe encoding you're using is good it should be mentioned
> on the three xml documents not only the xml file. That is to say, you
> have to mention it once in the xml source document and twice in the
> xsl stylesheet.
>   ----- Original Message ----- 
>   From: Laeremans Bart 
>   To: fop-user@xml.apache.org 
>   Sent: Friday, October 18, 2002 8:04 AM
>   Subject: Euro-problem
> 
> 
>   Hey, 
> 
>   I'm using XSQL from Oracle to generate XML which will then be
> serialized into 
>   PDF using FOP. 
> 
>   The coding of my XML is "ISO-8859-1". 
> 
>   But when I use an Euro-sign (€), it eithers shows me an '#' or
> the PDF just fails. 
> 
>   Has anybody ever had this problem and if so 
>   how did U fix it ??? 
> 
>   Thanks in advance. 
> 
>   Greetings, 
> 
>   Bart Laeremans 
> 
> 


__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

Re: Euro-problem

Posted by MARTIN Franck <fr...@c-s.fr>.
Euro-problemthe encoding you're using is good it should be mentioned on the three xml documents not only the xml file. That is to say, you have to mention it once in the xml source document and twice in the xsl stylesheet.
  ----- Original Message ----- 
  From: Laeremans Bart 
  To: fop-user@xml.apache.org 
  Sent: Friday, October 18, 2002 8:04 AM
  Subject: Euro-problem


  Hey, 

  I'm using XSQL from Oracle to generate XML which will then be serialized into 
  PDF using FOP. 

  The coding of my XML is "ISO-8859-1". 

  But when I use an Euro-sign (€), it eithers shows me an '#' or the PDF just fails. 

  Has anybody ever had this problem and if so 
  how did U fix it ??? 

  Thanks in advance. 

  Greetings, 

  Bart Laeremans 


Re: Euro-problem

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Jon Kofal wrote:
> Character sets in XML are a pain.  If only everyone would use UTF-8 or
> UTF-16 life would be easier.

Character set handling is actually one of the things XML is good. As
usual, ignorant users are more of a problem. If you use Windows Notepad
or a similar plain text editor, the resulting file is not encoded in
ISO-8859-1 but a Windows specific superset called CP1252 which has
printable characters where ISO-8859-1 has the upper control characters,
among them the Euro symbol (IIRC at 0x80). If you declare the file to be
ISO-8859-1 encoded, of course the Euro symbol is not properly recognized.

Either use a character reference with the Unicode code point for the Euro
symbol, or check whether the parser understands CP1252 and how it has to be
declared. Some do, however I'm to lazy to look up whether Xerces is among
them.

 > The Font in your final PDF must be able to represent this character as
 > well (Windows Character Map will reveal this to you, or use AltGr - E
 > on european keyboards).
 >
The default PDF fonts have e glyph.

 > I haven't found my solution, but I am looking along the lines of using
 > the &#x20AC; representaion, because in java I am having problems
 > parsing XML with the IS0-8859-15 char set (Xerces), and I don't know if
 > PDF supports Unicode characters.
 >
PDF uses indices pointing into fonts (sort of). While some standard
arrangements compatible to certain character set encodinga are predefined
and often used, basically every file can have an individual mapping. The
fonts installed with Acrobat Reader usually map only a small Unicode subset,
bu tif you supply and embed your own font, you can display anything you want,
Unicode and beyond.

J.Pietschmann


Re: Euro-problem

Posted by Jon Kofal <jo...@yahoo.com>.
I have this same problem.

The euro symbol is not in that character set, it appears first in the
ISO-8859-15 set.

Unicode (UTF-8 or UTF-16) users or users of the iso-8859-15 character
set can use the character directly, other encoding users will need to
represent it another way.

I haven't found my solution, but I am looking along the lines of using
the &#x20AC; representaion, because in java I am having problems
parsing XML with the IS0-8859-15 char set (Xerces), and I don't know if
PDF supports Unicode characters.

The Font in your final PDF must be able to represent this character as
well (Windows Character Map will reveal this to you, or use AltGr - E
on european keyboards).

Character sets in XML are a pain.  If only everyone would use UTF-8 or
UTF-16 life would be easier.

jon k



--- Laeremans Bart <Ba...@cronos.be> wrote:
> Hey,
> 
> I'm using XSQL from Oracle to generate XML which will then be
> serialized into
> PDF using FOP.
> 
> The coding of my XML is "ISO-8859-1".
> 
> But when I use an Euro-sign (EUR), it eithers shows me an '#' or the
> PDF just fails.
> 
> Has anybody ever had this problem and if so
> how did U fix it ???
> 
> Thanks in advance.
> 
> Greetings,
> 
> Bart Laeremans
> 


__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

RE: Euro-problem

Posted by Anthony Jones <an...@qtac.edu.au>.
I had a similar problem earlier today, and you get a '#' when the font you
are using doesn't know how to render the code.  All of the symbols that I
had to render today either had to use the 'Symbol' font or the
'ZapfDingbats' font.  If you are using Apache-FOP, you must use the correct
capitalization of the font otherwise it complains that it cannot find it.
 
The symbol you are looking for may not be in these font sets either, but
that is what it means when you see '#' being rendered.
 
Regards,
 
------------------------------------------------------
Anthony Jones
Senior Programmer (Applications and Development)
Queensland Tertiary Admissions Centre (QTAC) Ltd
 
Phone: +61 7 38581285
email: anthony@qtac.edu.au
 
  "If a train station is where the train stops,
           what is a work station?"
------------------------------------------------------
 
-----Original Message-----
From: Laeremans Bart [mailto:Bart.Laeremans@cronos.be]
Sent: Friday, 18 October 2002 4:04 PM
To: fop-user@xml.apache.org
Subject: Euro-problem
 
Hey, 
I'm using XSQL from Oracle to generate XML which will then be serialized
into 
PDF using FOP. 
The coding of my XML is "ISO-8859-1". 
But when I use an Euro-sign (EUR), it eithers shows me an '#' or the PDF
just fails. 
Has anybody ever had this problem and if so 
how did U fix it ??? 
Thanks in advance. 
Greetings, 
Bart Laeremans