From: Vincent Le Gallic Date: Thu, 26 Sep 2013 12:49:01 +0000 (+0200) Subject: Why U unicode ? X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=b88d22150a746bb953ca9500e95a391c20f377a6;p=bots%2Fbasile.git Why U unicode ? --- diff --git a/nk.py b/nk.py index 917a396..a9e8a5c 100644 --- a/nk.py +++ b/nk.py @@ -97,7 +97,7 @@ def get_solde(sock, idbde, serv, canal): pseudo = ret["msg"]["pseudo"] return (True, solde, pseudo) else: - serv.privmsg(canal, ret["errmsg"]) + serv.privmsg(canal, ret["errmsg"].encode("utf-8")) return (False, None, None) except Exception as exc: trace = traceback.format_exc()