Talk:O'Reilly Introduction to Python/Section 13

< Talk:O'Reilly Introduction to Python
Revision as of 19:12, 10 August 2014 by imported>CrabcakeUSMayo (Created page with "This error came up after my first entry in Section 14 "Flash Card Quizzer". The french_food.txt file has characters which are not recognized. Will have to research on changing...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This error came up after my first entry in Section 14 "Flash Card Quizzer". The french_food.txt file has characters which are not recognized. Will have to research on changing the script to support.

Here is the "Traceback", pretty sure I can fix.

Question: le repas Your guess: meal Correct! Traceback (most recent call last):

 File "flashcards.py", line 33, in <module>
   print("Question: " + question)
 File "C:\Python34\lib\encodings\cp437.py", line 19, in encode
   return codecs.charmap_encode(input,self.errors,encoding_map)[0]

UnicodeEncodeError: 'charmap' codec can't encode characters in position 14-15: character maps to <undefined>

Return to "O'Reilly Introduction to Python/Section 13" page.