parser as utf

This commit is contained in:
Ville Rantanen
2018-12-13 15:38:09 +02:00
parent c2eb9c4859
commit df76630553
2 changed files with 2 additions and 2 deletions

View File

@@ -166,7 +166,7 @@ def parse_form(key):
key = secure_filename(key)
try:
current_question = 0
with open(os.path.join(app.config['QUESTIONS'], key + ".txt"), "rt") as fp:
with open(os.path.join(app.config['QUESTIONS'], key + ".txt"), "rt", encoding = "UTF-8") as fp:
for row in fp:
if row.strip() == "":
continue