Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> writes: > On Fri, 22 Jun 2018 11:14:59 +0100, Ben Bacarisse wrote: > >>>> The code page remark is curious. Will some "code pages" have digits >>>> that are not ASCII digits? >>> >>> Good question. I have no idea. >> >> It's much more of an open question than I thought. > > Nah, Python already solves that for you:
My understanding was that the OP does not (reliably) know the encoding, though that was a guess based on a turn of phrase. Another guess is that the OP does not have Unicode data. The term "code page" hints at an 8-bit encoding or at least a pre-Unicode one. <snip> -- Ben. -- https://mail.python.org/mailman/listinfo/python-list