View Single Post
Old 07-10-2017, 04:56 PM   #4
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
It would be better someone else than me who actually has some knowledge about python would try to help.
The problem seems to be that penelope expects that the input file is utf-8 encoded and your input dictionary has some other encoding.
On GitHub page of penelope, I see that there is an optional argument to set the encoding of the input file:
Code:
--input-file-encoding INPUT_FILE_ENCODING
                        use the specified encoding for reading the raw
                        contents of input file(s) (default: 'utf-8')
Maybe you can figure out which encoding your input dictionary has. Maybe it is latin-1.

Last edited by tshering; 07-10-2017 at 05:10 PM.
tshering is offline   Reply With Quote