From 021c57205f79919703354cb2a01ac939e9b4afe2 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 3 Feb 2012 16:01:54 +0100 Subject: [PATCH] Don't assume data is ASCII in saslprep. --- sleekxmpp/thirdparty/suelta/saslprep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sleekxmpp/thirdparty/suelta/saslprep.py b/sleekxmpp/thirdparty/suelta/saslprep.py index fe58d58..8022e1c 100644 --- a/sleekxmpp/thirdparty/suelta/saslprep.py +++ b/sleekxmpp/thirdparty/suelta/saslprep.py @@ -16,7 +16,7 @@ def saslprep(text, strict=True): if sys.version_info < (3, 0): if type(text) == str: - text = text.decode('us-ascii') + text = text.decode('utf-8') # Mapping: #