Skip to content

Commit

Permalink
fix: force utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Jun 15, 2022
1 parent f33d7fc commit efae8f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beet/core/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def from_zip(cls, origin: ZipFile, name: str) -> str:

@classmethod
def from_path(cls, path: FileSystemPath, start: int, stop: int) -> str:
with open(path, "r") as f:
with open(path, "r", encoding="utf-8") as f:
if start > 0:
f.seek(start)
return f.read(stop - start) if stop >= -1 else f.read()
Expand Down

0 comments on commit efae8f7

Please sign in to comment.