[Python-ideas] Support WHATWG versions of legacy encodings

Chris Angelico rosuav at gmail.com
Wed Jan 10 21:22:30 EST 2018

On Thu, Jan 11, 2018 at 6:44 AM, Steve Barnes <gadgetsteve at live.co.uk> wrote:
> I am somewhat confused because according to
> https://encoding.spec.whatwg.org/index-windows-1252.txt 0x90 (one of the
> original examples) is undefined as the table only runs to 127 i.e. 0x7F.

AIUI the table in that file assumes that the first 128 bytes are
interpreted as per ASCII. So you're looking at the *next* 128 bytes,
and line 16 is the one that handles byte 0x90.


More information about the Python-ideas mailing list