Code :
xmlParserCtxtPt r ctx;
sax_handler.sta rtElement = startElement;
sax_handler.cha racters = characters;
sax_handler.end Element = endElement;
sax_handler.get Entity = getEntity;
ctx = xmlCreateFilePa rserCtxt( file);
ctx->sax = &sax_handler ;
xmlParseDocumen t (ctx);
xmlFreeParserCt xt( ctx);
Question :
If encoding input is different to UTF-8 I have read in documentation that
libxml convert into UTF-8 to process input and after reset to input
encoding.
I want an UTF-8 encoding for the output.
How can I say to libxml to keep data in UTF-8 ?
Thanks.
Mike
xmlParserCtxtPt r ctx;
sax_handler.sta rtElement = startElement;
sax_handler.cha racters = characters;
sax_handler.end Element = endElement;
sax_handler.get Entity = getEntity;
ctx = xmlCreateFilePa rserCtxt( file);
ctx->sax = &sax_handler ;
xmlParseDocumen t (ctx);
xmlFreeParserCt xt( ctx);
Question :
If encoding input is different to UTF-8 I have read in documentation that
libxml convert into UTF-8 to process input and after reset to input
encoding.
I want an UTF-8 encoding for the output.
How can I say to libxml to keep data in UTF-8 ?
Thanks.
Mike
Comment