Dispatch: encode('utf-8') XML-RPC input

This commit is contained in:
Brian S. Stephan 2013-01-12 10:10:32 -06:00
parent 947e82b78f
commit 475fa73bf3
1 changed files with 1 additions and 1 deletions

View File

@ -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