Skip to content

Commit

Permalink
Specify output encoding for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cmutel committed Oct 11, 2023
1 parent f92dadc commit bc867eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecoinvent_interface/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def _streaming_download(

if zipped:
with open(out_filepath, "rb") as source, open(
directory / filename, "w"
directory / filename, "w", encoding="utf-8"
) as target:
gzip_fd = gzip.GzipFile(fileobj=source)
target.write(gzip_fd.read().decode("utf-8-sig"))
Expand Down

0 comments on commit bc867eb

Please sign in to comment.