OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: encoding incompatibilities between XT and XP in FOP

[ Lists Home | Date Index | Thread Index ]
  • From: Richard Tobin <richard@cogsci.ed.ac.uk>
  • To: "James Tauber" <jtauber@jtauber.com>, "XML-Dev Mailing list" <xml-dev@ic.ac.uk>
  • Date: Thu, 29 Jul 1999 15:44:33 +0100 (BST)

> I have a stylesheet that uses &#x2022; 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@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@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS