Re: Started porting UDD to Python3 (Was: [UDD] Is there some effort to port UDD to Python3?)
- To: Andreas Tille <andreas@an3as.eu>, Lucas Nussbaum <lucas@lucas-nussbaum.net>
- Cc: Debian QA List <debian-qa@lists.debian.org>, Bas Couwenberg <sebastic@debian.org>, Gianfranco Costamagna <locutusofborg@debian.org>, Ivo De Decker <ivo.dedecker@ugent.be>, kroeckx <kroeckx@debian.org>, laney <laney@debian.org>, Mattia Rizzolo <mattia@debian.org>, Ole Streicher <ole@aip.de>, Paul Wise <pabs@debian.org>, zack <zack@debian.org>
- Subject: Re: Started porting UDD to Python3 (Was: [UDD] Is there some effort to port UDD to Python3?)
- From: Stéphane Blondon <stephane.blondon@gmail.com>
- Date: Thu, 14 May 2020 21:15:59 +0200
- Message-id: <[🔎] 6d71c868-5420-ad97-cbbc-b92dc800a244@gmail.com>
- In-reply-to: <[🔎] 20200514094332.GU550@an3as.eu>
- References: <20200401132433.GN20899@an3as.eu> <20200413204007.GB19310@xanadu.blop.info> <20200414064711.GG18187@an3as.eu> <[🔎] 20200513143842.GK550@an3as.eu> <[🔎] 20200513150902.GA1301@xanadu.blop.info> <[🔎] 20200513174056.GM550@an3as.eu> <[🔎] 20200514094332.GU550@an3as.eu>
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
Attachment:
signature.asc
Description: OpenPGP digital signature
Reply to: