瀏覽代碼

Changing encoding so it doesn't break on emoji

master
Noëlle Anthony 4 年之前
父節點
當前提交
168f7b7614
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      main.py

+ 1
- 1
main.py 查看文件

@@ -24,7 +24,7 @@ class TextLine:
o = "{}: {}".format(self.username, self.message.text())
self.textarea.append(o)
if self.logfile != "":
with open(self.logfile, "a") as file:
with open(self.logfile, "a", encoding="utf8") as file:
file.write(o + "\n")
self.message.clear()


Loading…
取消
儲存