jadjay 8 år sedan
förälder
incheckning
4c7ede54ef
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3 0
      irclib.py

+ 3 - 0
irclib.py Visa fil

780
         """Send raw string to the server.
780
         """Send raw string to the server.
781
 
781
 
782
         The string will be padded with appropriate CR LF.
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
         if self.socket is None:
787
         if self.socket is None:
785
             raise ServerNotConnectedError, "Not connected."
788
             raise ServerNotConnectedError, "Not connected."
786
         try:
789
         try: