We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ab0b9b commit 2bb2b57Copy full SHA for 2bb2b57
src/datacontract_specification/model.py
@@ -319,7 +319,7 @@ def to_yaml(self) -> str:
319
def from_file(cls, file_path: str) -> "DataContractSpecification":
320
if not os.path.exists(file_path):
321
raise FileNotFoundError(f"The file '{file_path}' does not exist.")
322
- with open(file_path, "r") as file:
+ with open(file_path, "r", encoding="utf-8") as file:
323
file_content = file.read()
324
return cls.from_string(file_content)
325
0 commit comments