瀏覽代碼

Fix.unicode (#1)

jadjay 8 年之前
父節點
當前提交
4c7ede54ef
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      irclib.py

+ 3 - 0
irclib.py 查看文件

@@ -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: