From a6b8b6d33314bc4f76b92759afad6f0703c9381c Mon Sep 17 00:00:00 2001 From: Etoh Date: Tue, 28 Feb 2023 20:32:29 +0000 Subject: [PATCH] Log --debug as UTF-8 to fix charmap mapping (#586) * Log --debug as UTF-8 to fix charmap mapping * Log --debug as UTF-8 to fix charmap mapping (v2) --- syncplay/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/utils.py b/syncplay/utils.py index 034a625..5f42a39 100755 --- a/syncplay/utils.py +++ b/syncplay/utils.py @@ -201,7 +201,7 @@ def blackholeStdoutForFrozenWindow(): path = os.path.join(os.getenv('HOME', '.'), fname) else: path = os.path.join(os.getenv('APPDATA', '.'), fname) - self._file = open(path, 'a') + self._file = open(path, 'a', encoding='utf-8') # TODO: Handle errors. if self._file is not None: self._file.write(text)