These have been plaguing me endlessly. Why? It seems that my console can’t handle the encoding. I take it that the my browser and word processor can handle it. I don’t have a master list of all the possible characters that it’s choking on. What is the best way to relieve this without modifying my data?
'charmap' codec can't encode character u'\xca'
You need to find out the encoding of your console (which system, OS, etc…?) —
'charmap'is unfortunately a somewhat-ambiguous identification for a codec, as the docs explain:i.e., it identifies a set of possible codecs, not a specific one.
Once you know your console supports a codec named
'foobar', change your statements that are nowinto