From 7609fa319e1dba0f74b3b1e4b64bafb529f922a3 Mon Sep 17 00:00:00 2001 From: Francesco Faraone Date: Tue, 23 May 2023 11:00:17 +0200 Subject: [PATCH] LITE-27575 force utf-8 stdout on win --- connect/cli/ccli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/connect/cli/ccli.py b/connect/cli/ccli.py index 90ea707f..b0bc43cd 100644 --- a/connect/cli/ccli.py +++ b/connect/cli/ccli.py @@ -51,6 +51,7 @@ def _ignore_openpyxl_warnings(): def _set_stdout_unbuffered(): # pragma: no cover if 'pytest' not in sys.modules: sys.stdout = io.TextIOWrapper(open(sys.stdout.fileno(), 'wb', 0), write_through=True) + sys.stdout.reconfigure(encoding='utf-8') if __name__ == '__main__':