Browse Source

Fix.unicode (#1)

jadjay 8 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
         """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: