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:
1 parent
e2c614fe9a
commit
a61e6ffade
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user