[xml] xmlReadDoc and UTF-16LE





Is there a way to read a UTF-16LE Xml document with xmlReadDoc?
 
Using this line of code
_document = xmlReadDoc( reinterpret_cast< const xmlChar * >( data.c_str() ), 
0, "UTF-16LE", XML_PARSE_PEDANTIC | XML_PARSE_NOBLANKS | XML_PARSE_NONET )
 
instead of
_document = xmlReadDoc( reinterpret_cast< const xmlChar * >( data.c_str() ), 
0, 0, XML_PARSE_PEDANTIC | XML_PARSE_NOBLANKS | XML_PARSE_NONET )
 
sames to have no effect.



www.denisgottardello.it
GMT+1
Skype: mrdebug
Videosurveillance and home automation! 
http://www.denisgottardello.it/DomusBoss


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