On 5/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
<channel>
<title>Aftonbladet öjesliv</title>
</channel>
</rss>
I try to extract the title element from the above. But the encoding is not
recognised. What i get is this:
Aftonbladet öjesliv
What do you mean the encoding is not recognized? That looks like a
perfectly valid result. ö is U+00F6 LATIN SMALL LETTER O WITH
DIAERESIS.
Regards,
Aron
here is the code that gets the item:
xmlChar * content_ptr = xmlNodeListGetString(_doc, cur_node->xmlChildrenNode,
0);
if ( !std::strcmp((const char*)cur_node->name, "title") )
{
int len = std::strlen((const char*)content_ptr);;
char * t = new char[len+1];
std::memcpy( t, content_ptr, len);
FeedInformation->feedContents()->title = t;
}
advice much appreciated,
thank's,
Greger
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml