Skip to content
This repository has been archived by the owner on Mar 20, 2020. It is now read-only.

Commit

Permalink
Opens files in utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-pee authored and benwr committed Aug 6, 2019
1 parent 63ade1f commit 92d5475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ankdown/ankdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def compile_field(field_lines, is_markdown):

def produce_cards(filename):
"""Given the markdown in infile, produce the intended result cards."""
with open(filename, "r") as f:
with open(filename, "r", encoding="utf8") as f:
current_field_lines = []
i = 0
current_card = Card(filename, file_index=i)
Expand Down

0 comments on commit 92d5475

Please sign in to comment.