From 475fa73bf37cdd8947be866619ddc6cac8215a63 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sat, 12 Jan 2013 10:10:32 -0600 Subject: [PATCH] Dispatch: encode('utf-8') XML-RPC input --- modules/Dispatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Dispatch.py b/modules/Dispatch.py index 7cc9711..d087c71 100644 --- a/modules/Dispatch.py +++ b/modules/Dispatch.py @@ -85,7 +85,7 @@ class Dispatch(Module): key, dest = self._get_key_and_destination(key) if key is not None and dest is not None: - msg = "[{0:s}] {1:s}".format(key, message) + msg = "[{0:s}] {1:s}".format(key, message.encode('utf-8', 'ignore')) self.new_sendmsg(dest, msg) return dest, msg