Newbie question about text encoding

Chris Angelico rosuav at gmail.com
Tue Feb 24 10:10:42 EST 2015


On Wed, Feb 25, 2015 at 2:07 AM, Laura Creighton <lac at openend.se> wrote:
>>Can you be sure it's Latin-1? I'm not certain of that. In any case, I
>>never advocate fixing encoding problems by "just do this and it'll all
>>go away"; you have to understand your data before you can decode it.
>>
>>ChrisA
>
> I can, I speak French and I recognise the data.  It's French place names,
> places where sporting events are held. :)

Ah, okay. :) But even with that level of confidence, you still have to
pick between Latin-1 and CP-1252, which you can't tell based on this
one snippet. Welcome to untagged encodings.

ChrisA



More information about the Python-list mailing list