]> git.sommitrealweird.co.uk Git - curses-crossword.git/blobdiff - curses-crossword.py
Encode clues in real charset...
[curses-crossword.git] / 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"])