Skip to content

Commit e3a2d36

Browse files
committed
specify encoding for bibligraphy file
1 parent 97b14ef commit e3a2d36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/philologic/loadtime/Loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def parse_bibliography_file(self, bibliography_file, sort_by_field, reverse_sort
205205
delimiter = "\t"
206206
else:
207207
delimiter = ","
208-
with open(bibliography_file) as input_file:
208+
with open(bibliography_file, encoding="utf8") as input_file:
209209
reader = csv.DictReader(input_file, delimiter=delimiter)
210210
load_metadata = [metadata for metadata in reader]
211211
print("Sorting files by the following metadata fields: %s..." % ", ".join([i for i in sort_by_field]), end=" ")

0 commit comments

Comments
 (0)