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

Specify UTF-8 encoding when opening the source file.

(cherry picked from commit a61e6ffade5b678956f209e7bf99582aeba7d052)
This commit is contained in:
DSOE1024
2026-03-16 03:50:23 +08:00
committed by Thaddeus Crews
parent bae6b1ca14
commit 18d11e0ce4
+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: