libxml - encoding

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike

    #1

    libxml - encoding

    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
  • Bjoern Hoehrmann

    #2
    Re: libxml - encoding

    * Mike wrote in comp.text.xml:[color=blue]
    > 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 ?[/color]


    Comment

    Working...