always encode hello to utf-8

This commit is contained in:
Tomas Kopecek 2016-10-11 14:09:50 +02:00
parent 3a3c7cfa25
commit 439f77272b

View file

@ -6888,7 +6888,7 @@ def handle_moshimoshi(options, session, args):
if not u:
print "Not authenticated"
u = {'name' : 'anonymous user'}
print "%s, %s!" % (random.choice(greetings), u["name"],)
print "%s, %s!" % (random.choice(greetings).encode('utf-8'), u["name"],)
print ""
print "You are using the hub at %s" % (session.baseurl,)
authtype = u.get('authtype', getattr(session, 'authtype', None))