diff --git a/scripts/compile_mod.py b/scripts/compile_mod.py index 666297a6..d8a73714 100644 --- a/scripts/compile_mod.py +++ b/scripts/compile_mod.py @@ -378,7 +378,7 @@ def compile_mod( with tempfile.NamedTemporaryFile(delete=False, suffix='.wh.cpp') as tmp: mod_file_temp = Path(tmp.name) - mod_file_temp.write_text(mod_code) + mod_file_temp.write_text(mod_code, encoding='utf-8') mod_file_for_compilation = mod_file_temp compiler_args = [