From f8e300ab1d8e04aaa8d92124d81c6be25d634862 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 7 Jul 2016 12:03:02 +1000 Subject: [PATCH] use utf8 for collection.log --- anki/collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/collection.py b/anki/collection.py index dae76911d..0711d03db 100644 --- a/anki/collection.py +++ b/anki/collection.py @@ -840,7 +840,7 @@ and queue = 0""", intTime(), self.usn()) if os.path.exists(lpath2): os.unlink(lpath2) os.rename(lpath, lpath2) - self._logHnd = open(lpath, "a") + self._logHnd = open(lpath, "a", encoding="utf8") def _closeLog(self): self._logHnd = None