Dispatch: encode('utf-8') XML-RPC input
This commit is contained in:
parent
947e82b78f
commit
475fa73bf3
@ -85,7 +85,7 @@ class Dispatch(Module):
|
|||||||
key, dest = self._get_key_and_destination(key)
|
key, dest = self._get_key_and_destination(key)
|
||||||
|
|
||||||
if key is not None and dest is not None:
|
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)
|
self.new_sendmsg(dest, msg)
|
||||||
|
|
||||||
return dest, msg
|
return dest, msg
|
||||||
|
Loading…
Reference in New Issue
Block a user