Possible Duplicate:
UnicodeDecodeError, invalid continuation byte
I am trying to use characters such as á
and ô
in a python generated PDF. The program uses the dateutil module (and several others) to generate a PDF calendar (with images). The calendar is laid out with Latex.
My aim is to create calendars in French, but the array of month names in French includes characters which appear to be not recognised by python.
During generation the program prints SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe9 in position 0: unexpected end of data
in the command line.
How can I tell python to use these characters?
If it helps the array is:
FRENCH_MONTHS = [u'NotAMonth', u'Janvier', u'Février', u'Mars', u'Avril', u'Mai', u'Juin', u'Juillet', u'Aôut', u'Septembre', u'Octobre', u'Novembre', u'Décembre']
Also used:
- MPS to PDF converter