use utf8 for collection.log

This commit is contained in:
Damien Elmes 2016-07-07 12:03:02 +10:00
parent 05d13de766
commit f8e300ab1d

View File

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