Browse Source

Fix.unicode (#1)

jadjay 7 years ago
parent
commit
4c7ede54ef
1 changed files with 3 additions and 0 deletions
  1. 3 0
      irclib.py

+ 3 - 0
irclib.py View File

@@ -780,7 +780,10 @@ class ServerConnection(Connection):
780 780
         """Send raw string to the server.
781 781
 
782 782
         The string will be padded with appropriate CR LF.
783
+        From here everything need to be encoded in str from utf-8
783 784
         """
785
+        string=string.encode('utf-8')
786
+
784 787
         if self.socket is None:
785 788
             raise ServerNotConnectedError, "Not connected."
786 789
         try: