From e06cdec81ae8732b496acdbb3e86ad8ef7afe640 Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Thu, 25 Feb 2010 01:12:15 +0000 Subject: fixed some unicode problems for 2.6 --- example.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'example.py') 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): -- cgit v1.2.3