From 4c7ede54efafa94329e07981e4f848e8dbe5980e Mon Sep 17 00:00:00 2001 From: jadjay Date: Wed, 22 Jun 2016 19:00:06 +0200 Subject: [PATCH] Fix.unicode (#1) Encoding str from utf-8 before sending to socket --- irclib.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/irclib.py b/irclib.py index 5f7141c..581d965 100644 --- a/irclib.py +++ b/irclib.py @@ -780,7 +780,10 @@ class ServerConnection(Connection): """Send raw string to the server. The string will be padded with appropriate CR LF. + From here everything need to be encoded in str from utf-8 """ + string=string.encode('utf-8') + if self.socket is None: raise ServerNotConnectedError, "Not connected." try: