From a45554a10bcacf0ecd5f38a16ebafe696d75957c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Tue, 17 Apr 2018 22:00:15 +0200 Subject: [PATCH] Save history export with utf8 encoding --- gajim/history_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gajim/history_manager.py b/gajim/history_manager.py index 98de17275..2fda801c5 100644 --- a/gajim/history_manager.py +++ b/gajim/history_manager.py @@ -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