From 12e8bb6ddcd686ec9835ba478a112984e65120a1 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Wed, 31 Oct 2012 00:03:55 -0700 Subject: Turns out not all data is UTF-8, so don't try to decode it. Fixes issue #204 --- sleekxmpp/plugins/xep_0047/stanza.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sleekxmpp') diff --git a/sleekxmpp/plugins/xep_0047/stanza.py b/sleekxmpp/plugins/xep_0047/stanza.py index e4a32f87..7e5d2fed 100644 --- a/sleekxmpp/plugins/xep_0047/stanza.py +++ b/sleekxmpp/plugins/xep_0047/stanza.py @@ -14,7 +14,7 @@ def to_b64(data): def from_b64(data): - return bytes(base64.b64decode(bytes(data))).decode('utf-8') + return bytes(base64.b64decode(bytes(data))) class Open(ElementBase): -- cgit v1.2.3