diff --git a/src/plugins/plugin_misc_xmllog.py b/src/plugins/plugin_misc_xmllog.py index 054460fb..eaad4dfd 100755 --- a/src/plugins/plugin_misc_xmllog.py +++ b/src/plugins/plugin_misc_xmllog.py @@ -49,7 +49,9 @@ class LoggingXmlStream(XmlStream): return XmlStream.send(self, obj) def dataReceived(self, data): - self._host.bridge.xmlLog("IN", data.decode('utf-8'), self._profile) + # FIXME: we use "replace" here because a big stanza can be cut in the middle of a unicode char + # this plugin should probably moved to a better place, where stanzas are fully received + self._host.bridge.xmlLog("IN", data.decode('utf-8', 'replace'), self._profile) return XmlStream.dataReceived(self, data)