From 6ad182bbd98b250b444ff20951bf71964c1d7622 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Fri, 16 Jun 2023 00:16:09 +0800 Subject: [PATCH] add encoding --- nuitka_build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuitka_build.py b/nuitka_build.py index 6fdc980..925e061 100644 --- a/nuitka_build.py +++ b/nuitka_build.py @@ -135,7 +135,7 @@ if __name__ == '__main__': 'dist_size_mb': dist_dir_size / 1024 / 1024, 'compiler_data': compiler.str_option(), 'dist_file_size': dist_file_size} - with open(compiler.output_path / f'../compile_data-{time.time()}.toml', 'w') as compile_data_file: + with open(compiler.output_path / f'../compile_data-{time.time()}.toml', 'w', encoding='utf-8') as compile_data_file: tomlkit.dump(compile_data, compile_data_file) sys.exit(0)