Fix T76736: incorrect filename in SVG, fails to load elsewhere

This commit is contained in:
Campbell Barton 2020-06-02 19:28:22 +10:00
parent f5edd05a3b
commit 86c4ca71ef
Notes: blender-bot 2023-02-13 22:31:59 +01:00
Referenced by issue blender/blender#76736, Problems of UV coordinates and SVG export
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ import bpy
def export(filepath, face_data, colors, width, height, opacity):
with open(filepath, "w") as file:
with open(filepath, 'w', encoding='utf-8') as file:
for text in get_file_parts(face_data, colors, width, height, opacity):
file.write(text)

View File

@ -23,7 +23,7 @@ from os.path import basename
from xml.sax.saxutils import escape
def export(filepath, face_data, colors, width, height, opacity):
with open(filepath, "w") as file:
with open(filepath, 'w', encoding='utf-8') as file:
for text in get_file_parts(face_data, colors, width, height, opacity):
file.write(text)