Encoding: ISO-8859-2
Jayesh Shah <[email protected]> Fri, 18 May 2012 23:58:28 +0800 (SGT)
| Newsgroups | gmane.text.xml.expat.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Expat, =A0 I need to support 'ISO-8859-2' encoding to read XML file via C code. =A0 =A0 Below is the sample code that i wrote which works fine for UTF-8: XML_Parser gbl_xml_parser_ptr =3D NULL; = gbl_xml_parser_ptr =3D XML_ParserCreate(NULL); XML_UseParserAsHandlerArg(gbl_xml_parser_ptr); XML_SetElementHandler(gbl_xml_parser_ptr, start_hndl, end_hndl); XML_SetCharacterDataHandler(gbl_xml_parser_ptr, char_hndl); =A0 To support 'ISO-8859-2', am suppose to use XML_SetUnknownEncodingHandler an= d write a handler. =A0 However, am not able to write the handler for the same. =A0 Please suggest =A0 Thanks in advance Regards,, Jayesh Shah