We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c17494 commit 383fcddCopy full SHA for 383fcdd
src/py-opentimelineio/opentimelineio/adapters/adapter.py
@@ -105,7 +105,7 @@ def read_from_file(
105
not self.has_feature("read_from_file") and
106
self.has_feature("read_from_string")
107
):
108
- with open(filepath) as fo:
+ with open(filepath, encoding="utf-8") as fo:
109
contents = fo.read()
110
result = self._execute_function(
111
"read_from_string",
@@ -181,7 +181,7 @@ def write_to_file(
181
self.has_feature("write_to_string")
182
183
result = self.write_to_string(input_otio, **adapter_argument_map)
184
- with open(filepath, 'w') as fo:
+ with open(filepath, 'w', encoding="utf-8") as fo:
185
fo.write(result)
186
result = filepath
187
0 commit comments