From 1801894965cec6262493fdf935e6b3926dce380c Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Mon, 1 Oct 2001 19:03:26 +0000 Subject: Applied patch from Takuo Kitame svn path=/trunk/; revision=13271 --- my-evolution/ChangeLog | 5 +++++ my-evolution/e-summary-rdf.c | 12 +++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog index d820da715b..2667b0322d 100644 --- a/my-evolution/ChangeLog +++ b/my-evolution/ChangeLog @@ -1,3 +1,8 @@ +2001-10-01 Iain Holmes + + * e-summary-rdf.c: Applied patch from Takuo Kitame for using charset + from the rdf. + 2001-09-27 Iain Holmes * e-summary-tasks.c (generate_html): Pass the summary to diff --git a/my-evolution/e-summary-rdf.c b/my-evolution/e-summary-rdf.c index d023e630f8..fa12df5996 100644 --- a/my-evolution/e-summary-rdf.c +++ b/my-evolution/e-summary-rdf.c @@ -244,8 +244,11 @@ tree_walk (xmlNodePtr root, u = layer_find(channel->childs, "link", ""); if (*u != '\0') - g_string_sprintfa (html, "", u); - t = e_utf8_from_locale_string (t); + g_string_sprintfa (html, "", u); + if (r->cache->encoding) + t = e_utf8_from_charset_string (r->cache->encoding, t); + else + t = e_utf8_from_locale_string (t); g_string_append (html, t); g_free (t); if (*u != '\0') { @@ -268,7 +271,10 @@ tree_walk (xmlNodePtr root, g_string_append (html, tmp); g_free (tmp); - p = e_utf8_from_locale_string (p); + if (r->cache->encoding) + p = e_utf8_from_charset_string (r->cache->encoding, p); + else + p = e_utf8_from_locale_string (p); tmp = g_strdup_printf ("%s\n", p); g_free (p); g_string_append (html, tmp); -- cgit