Browse Source

Changing encoding so it doesn't break on emoji

master
Noëlle Anthony 4 years ago
parent
commit
168f7b7614
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      main.py

+ 1
- 1
main.py View File

@@ -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…
Cancel
Save