[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?



>>>>> "Andrew" == Andrew Law <andrew law digeo com> writes:
(B
(B    Andrew> I have ran the example (gjobread) in libxml2-2.4.19 and
(B    Andrew> libxml2.2.4.23.  I modified the gjobs.xml to contain this
(B    Andrew> word (,AA(Bvant) and added encoding="ISO-8859-1" in the header
(B    Andrew> of the xml file, the output of the word becames
(B    Andrew> (,AC(Bvant).  Does any one know what this mean?
(B
(BThe internal encoding of the library is UTF-8.  See 
(B
(B    http://www.xmlsoft.org/encoding.html
(B
(BYour output is ,AA(Bvant in UTF-8 encoding.
(B
(B    Andrew> What can I make the output looks exactly the same as input?
(B
(BI guess you could use UTF8Toisolat1()
(B
(B    http://xmlsoft.org/html/libxml-encoding.html#UTF8TOISOLAT1
(B
(B
(BGeert


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