FW: [xml] How can I parse XML using ISO 8859-1 decoding?



I have ran the example (gjobread) in libxml2-2.4.19 and libxml2.2.4.23.  I modified the gjobs.xml to contain 
this word (Ávant) and added encoding="ISO-8859-1" in the header of the xml file, the output of the word 
becames (Ã?vant).  Does any one know what this mean?
What can I make the output looks exactly the same as input?

thanks
Andrew

-----Original Message-----
From: Christian Glahn
Sent: Wednesday, July 17, 2002 2:31 AM
To: Andrew Law
Subject: Re: [xml] How can I parse XML using ISO 8859-1 decoding?


On Tue, Jul 16, 2002 at 03:48:54PM -0700, Andrew Law wrote:
I am using SAX interface to parse XML, the XML is encoded with "ISO-8859-1" and contains French, Spanish, 
etc.
Is there any method I can enable in the libxml2 that allows to catch all characters in ISO 8859-1 or Latin 
1.


you may want to read this document:

http://xmlsoft.org/encoding.html

christian
---------
perl -MXML::LibXML



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]