Add UTF-8 encoding to svg file open in platform_builders.py

Specify UTF-8 encoding when opening the source file.
This commit is contained in:
DSOE1024 authored and GitHub committed 2026-03-16 03:50:23 +08:00
1 parent e2c614fe9a
commit a61e6ffade
1 file changed
+1 -1
+1 -1
View File
@@ -10,7 +10,7 @@ def export_icon_builder(target, source, env):
src_name = src_path.stem
platform = src_path.parent.parent.stem
with open(str(source[0]), "r") as file:
with open(str(source[0]), "r", encoding="utf-8") as file:
svg = file.read()
with methods.generated_wrapper(str(target[0])) as file: