it just throws error that it cant load it
python by default tries to open file in windows-1252, but it fails
would be good if UnityDocument.load_yaml would use utf-8 encoding by default
@classmethod
def load_yaml(cls, file_path):
register = UnityScalarRegister()
with open(file_path, newline='', encoding='utf8') as fp:
data = [d for d in load_all(fp, register)]
# use document line endings if no mixed lien endings found, else default to linux
line_endings = UNIX_LINE_ENDINGS if isinstance(fp.newlines, tuple) else fp.newlines
doc = UnityDocument(data, newline=line_endings, file_path=file_path, register=register)
return doc
it just throws error that it cant load it python by default tries to open file in windows-1252, but it fails would be good if UnityDocument.load_yaml would use utf-8 encoding by default