Save history export with utf8 encoding

This commit is contained in:
Philipp Hörist 2018-04-17 22:00:15 +02:00
parent a98d969f22
commit a45554a10b
1 changed files with 1 additions and 1 deletions

View File

@ -515,7 +515,7 @@ class HistoryManager:
# AT THIS TIME FIRST EXECUTE IS LOST! WTH!!!!!
results = self.cur.fetchall()
#print results[0]
file_ = open(path_to_file, 'w')
file_ = open(path_to_file, 'w', encoding='utf-8')
for row in results:
# in store: time, kind, message, contact_name FROM logs
# in text: JID or You or nickname (if it's gc_msg), time, message