C'è un modo per leggere un documento Xml UTF-16LE con xmlReadDoc?



Questa riga di codice

_document = xmlReadDoc( reinterpret_cast< const xmlChar * >( data.c_str() ), 0, "UTF-16LE", XML_PARSE_PEDANTIC | XML_PARSE_NOBLANKS | XML_PARSE_NONET )



al posto di

_document = xmlReadDoc( reinterpret_cast< const xmlChar * >( data.c_str() ), 0, 0, XML_PARSE_PEDANTIC | XML_PARSE_NOBLANKS | XML_PARSE_NONET )



non ha alcun effetto.