From 6d8b08d493f552b54ab4452135d8c3e581b8eebe Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Thu, 9 Jul 2009 14:32:38 +0100 Subject: [PATCH] Encode clues in real charset... --- curses-crossword.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curses-crossword.py b/curses-crossword.py index a396105..06d944e 100644 --- a/curses-crossword.py +++ b/curses-crossword.py @@ -58,13 +58,13 @@ def parsecrossword(crossworddata): 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"]) -- 2.39.5