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

Open files in utf8 #27

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ankdown/ankdown.py
100755 → 100644
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