浏览代码

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()


正在加载...
取消
保存