And, ideally, somebody would contact whoever is providing that file so that they re-encode it with utf8...
On Thu, 14 May 2020, 9:16 pm Stéphane Blondon, <stephane.blon...@gmail.com> wrote: > On 14/05/2020 11:43, Andreas Tille wrote: > > UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc5 in position 11: > invalid continuation byte > > The error is like [1] where the file is not encoded utf-8. > > 1: > > https://stackoverflow.com/questions/5552555/unicodedecodeerror-invalid-continuation-byte > > > > + f = open(trfile, encoding='utf-8') > > `f = open(trfile, encoding='latin-1')` > > could be a (temporary?) solution. > > > Regards, > Stéphane > >