evolution-rss r138 - in trunk: . src
- From: lucilanga svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-rss r138 - in trunk: . src
- Date: Mon, 28 Jan 2008 06:35:47 +0000 (GMT)
Author: lucilanga
Date: Mon Jan 28 06:35:47 2008
New Revision: 138
URL: http://svn.gnome.org/viewvc/evolution-rss?rev=138&view=rev
Log:
utf8 for gtkhtml
Modified:
trunk/ChangeLog
trunk/src/rss.c
Modified: trunk/src/rss.c
==============================================================================
--- trunk/src/rss.c (original)
+++ trunk/src/rss.c Mon Jan 28 06:35:47 2008
@@ -3211,14 +3211,21 @@
camel_stream_printf (t->stream, "</tr></table></td></tr></table>");
goto out;
}
- xmlDoc *doc = parse_html(addr, content->str, content->len);
- if (doc)
+
+ inlen = content->len;
+ utf8len = 5*inlen+1;
+ buffer2 = g_malloc(utf8len);
+ UTF8ToHtml(buffer2, &utf8len, content->str, &inlen);
+// g_byte_array_free (buffer, 1);
+ xmlDoc *src = (xmlDoc *)parse_html(addr, buffer2, strlen(buffer2));
+
+ if (src)
{
- htmlDocDumpMemory(doc, &buff, &size);
+ htmlDocDumpMemory(src, &buff, &size);
#ifdef RSS_DEBUG
g_print("%s\n", buff);
#endif
- xmlFree(doc);
+ xmlFree(src);
}
else
goto out;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]