]> git.sommitrealweird.co.uk Git - curses-crossword.git/commitdiff
Encode clues in real charset...
authorBrett Parker <iDunno@sommitrealweird.co.uk>
Thu, 9 Jul 2009 13:32:38 +0000 (14:32 +0100)
committerBrett Parker <iDunno@sommitrealweird.co.uk>
Thu, 9 Jul 2009 13:32:38 +0000 (14:32 +0100)
curses-crossword.py

index a396105a983d4198742153496c14ca11faa21b41..06d944ea3d3dbd13484792d45394b23e48a32729 100644 (file)
@@ -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"])