Skip to content

Commit

Permalink
Open etymwn-smaller.tsv as utf-8 file. fixes issue #30
Browse files Browse the repository at this point in the history
  • Loading branch information
lucad5 authored Aug 4, 2024
1 parent 2a19cc2 commit caef11b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macroetym/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# Parse the CSV file.
etymdict = {}
etymwn = resource_filename(__name__, 'etymwn-smaller.tsv')
with open(etymwn) as csvfile:
with open(etymwn, encoding="utf-8") as csvfile:
csvreader = csv.reader(csvfile, delimiter='\t')
for line in csvreader:
if line[0] in etymdict:
Expand Down

0 comments on commit caef11b

Please sign in to comment.