encoding incompatibilities between XT and XP in FOP

Richard Tobin richard at cogsci.ed.ac.uk
Thu Jul 29 16:42:09 BST 1999

> I have a stylesheet that uses • for the bullet in a list. If I run it
> through XT (next to last version) and save the result tree as a file, the
> bullet character is represented literally (ie it isn't a character
> reference).

Exactly what bytes is it represented by, and what encoding declaration
does the file have?

The UTF-8 representation of 0x2022 is 0xE2 0x80 0xA2.  0x80 is the
representation of the Euro symbol in some MS Windows Codepages, and
its unicode number is 0x20AC.  This suggests that the file is being
written out in UTF-8 but read in as if it were some Latin-1 related
MS Windows code.

If it doesn't have one, try adding an explicit
 <?xml version="1.0" encoding="utf-8"?>

to the saved file.

-- Richard

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)

More information about the Xml-dev mailing list