Merge #183 always encode hello to utf-8

This commit is contained in:
Mike McLean 2016-10-11 13:21:03 +00:00
commit bfc5d6c395

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))