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

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



I tried and it works.
Howeveris that possible to enable this decoding gobally?

thanks,
Andrew

-----Original Message-----
From: Geert Kloosterman [mailto:geertk ai rug nl]
Sent: Wednesday, July 17, 2002 1:49 PM
To: Andrew Law
Cc: xml gnome org
Subject: Re: FW: [xml] How can I parse XML using ISO 8859-1 decoding?


>>>>> "Andrew" == Andrew Law <andrew law digeo com> writes:

    Andrew> I have ran the example (gjobread) in libxml2-2.4.19 and
    Andrew> libxml2.2.4.23.  I modified the gjobs.xml to contain this
    Andrew> word (,AAvant) and added encoding="ISO-8859-1" in the header
    Andrew> of the xml file, the output of the word becames
    Andrew> (

The internal encoding of the library is UTF-8.  See 

    http://www.xmlsoft.org/encoding.html

Your output is ,AAvant in UTF-8 encoding.

    Andrew> What can I make the output looks exactly the same as input?

I guess you could use UTF8Toisolat1()

    http://xmlsoft.org/html/libxml-encoding.html#UTF8TOISOLAT1


Geert


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