Skip to content

Commit

Permalink
fix: force utf-8 for babelbox
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Jan 13, 2024
1 parent 7f8ec59 commit cb69414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beet/contrib/babelbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def load_languages(
prefix: str = "",
) -> Dict[str, Language]:
"""Return a dictionnary mapping each column to a language file."""
with open(path, newline="") as csv_file:
with open(path, encoding="utf-8", newline="") as csv_file:
if not dialect:
dialect = Sniffer().sniff(csv_file.read(1024))
csv_file.seek(0)
Expand Down

0 comments on commit cb69414

Please sign in to comment.