translating foreign data

Ben Bacarisse ben.usenet at bsb.me.uk
Fri Jun 22 15:06:35 EDT 2018


Steven D'Aprano <steve+comp.lang.python at 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.



More information about the Python-list mailing list