parts = line.split()
question_number = int(parts[0])
clue = " ".join(parts[1:])
- crossword["across"][int(question_number)] = clue
+ crossword["across"][int(question_number)] = clue.encode('utf-8')
if indown:
if line != "":
parts = line.split()
question_number = int(parts[0])
clue = " ".join(parts[1:])
- crossword["down"][int(question_number)] = clue
+ crossword["down"][int(question_number)] = clue.encode('utf-8')
num_cols = len(crossword["grid"][0])
num_rows = len(crossword["grid"])