From 9fd986ee792c3fa63e325c3003d754d6c0e21db7 Mon Sep 17 00:00:00 2001 From: WyattBlue Date: Thu, 28 Nov 2024 20:55:17 -0500 Subject: [PATCH] Fix unicode error on Windows --- auto_editor/subcommands/info.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/auto_editor/subcommands/info.py b/auto_editor/subcommands/info.py index 268810df5..813291a39 100644 --- a/auto_editor/subcommands/info.py +++ b/auto_editor/subcommands/info.py @@ -163,6 +163,8 @@ def main(sys_args: list[str] = sys.argv[1:]) -> None: file_info[file]["subtitle"].append(sub) if args.json: + if sys.platform == "win32": + sys.stdout.reconfigure(encoding="utf-8") dump(file_info, sys.stdout, indent=4) return