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