summaryrefslogtreecommitdiff
path: root/example.py
diff options
context:
space:
mode:
Diffstat (limited to 'example.py')
-rw-r--r--example.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/example.py b/example.py
index bba31a8f..71979c56 100644
--- a/example.py
+++ b/example.py
@@ -1,8 +1,13 @@
+# coding=utf8
+
import sleekxmpp
import logging
from optparse import OptionParser
import time
+reload(sys)
+sys.setdefaultencoding('utf8')
+
class Example(sleekxmpp.ClientXMPP):
def __init__(self, jid, password):