From b88d22150a746bb953ca9500e95a391c20f377a6 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Thu, 26 Sep 2013 14:49:01 +0200 Subject: [PATCH] Why U unicode ? --- nk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.39.2