From 4064da76aa87be37d4ce36ef42439c67a6c19697 Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 28 Aug 2006 13:18:12 +0000 Subject: [PATCH] plugins/RSS: UTF-8 encode the RSS' URL to prevent an encoding error when including the URL in the reply. --- plugins/RSS/plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/RSS/plugin.py b/plugins/RSS/plugin.py index 546a59897..5f8aa93e1 100644 --- a/plugins/RSS/plugin.py +++ b/plugins/RSS/plugin.py @@ -139,7 +139,9 @@ class RSS(callbacks.Plugin): if self.registryValue(config, channel): for headline in headlines: if headline[1]: - newheadlines.append(format('%s %u', *headline)) + newheadlines.append(format('%s %u', + headline[0], + headline[1].encode('utf-8'))) else: newheadlines.append(format('%s', headline[0])) else: