jadjay 8 anni fa
parent
commit
4c7ede54ef
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      irclib.py

+ 3 - 0
irclib.py Vedi 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: