On Fri, Aug 28, 2020 at 10:51 PM Chris Green <c...@isbd.net> wrote:
>
> > One possible solution in Python3 is to decode the byte string using an
> > encoding that allows all 256 byte values, so it won't raise any encoding
> > errors, just give your possibly non-sense characters for non-ASCII text.
> >
> But this will simply get some things quite wrong and produce garbage
> won't it?  Whereas Python 2 would simply scramble the odd character.
>

It would. Don't do that. Either keep it as bytes, or decode it using
the correct encoding.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to