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 f00006c commit 83ee6faCopy full SHA for 83ee6fa
src/open_data_contract_standard/model.py
@@ -205,7 +205,7 @@ def to_yaml(self) -> str:
205
def from_file(cls, file_path: str) -> "OpenDataContractStandard":
206
if not os.path.exists(file_path):
207
raise FileNotFoundError(f"The file '{file_path}' does not exist.")
208
- with open(file_path, "r") as file:
+ with open(file_path, "r", encoding="utf-8") as file:
209
file_content = file.read()
210
return cls.from_string(file_content)
211
0 commit comments