From 92d547546e390f6df7ebe2242bbf67b1e025b537 Mon Sep 17 00:00:00 2001 From: Philip Date: Sun, 7 Jul 2019 17:13:20 +0200 Subject: [PATCH] Opens files in utf8 --- ankdown/ankdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ankdown/ankdown.py b/ankdown/ankdown.py index 3f347e3..ade72e1 100755 --- a/ankdown/ankdown.py +++ b/ankdown/ankdown.py @@ -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)