From: Brett Parker Date: Thu, 9 Jul 2009 13:32:38 +0000 (+0100) Subject: Encode clues in real charset... X-Git-Url: https://git.sommitrealweird.co.uk/curses-crossword.git/commitdiff_plain/6d8b08d493f552b54ab4452135d8c3e581b8eebe?ds=inline Encode clues in real charset... --- 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"])