From 51236ab9c30f3cce6f7bab00d05c2d5e5de37062 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Tue, 9 Jan 2024 15:54:00 +0300 Subject: [PATCH] bytebeat_compiler.py: save file in UTF-8 w/o BOM --- bytebeat_compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bytebeat_compiler.py b/bytebeat_compiler.py index b5399a8..4c98bed 100644 --- a/bytebeat_compiler.py +++ b/bytebeat_compiler.py @@ -48,7 +48,7 @@ def read_file(path: str) -> str: return open(path, "r", encoding="utf-8-sig").read() def rewrite_file(path: str, content: str): - return open(path, "w", encoding="utf-8-sig").write(content) + return open(path, "w", encoding="utf-8").write(content) def read_from_file_or_stdin(path: str) -> str: if path == "-":