ÿ in Unicode

Ben Bacarisse ben.lists at bsb.me.uk
Thu Mar 5 07:20:23 EST 2020


moi <wxjmfauth at gmail.com> writes:

>>>> 'ÿ'.encode('utf-8')
> b'\xc3\xbf'
>>>> 'ÿ'.encode('utf-16-le')
> b'\xff\x00'
>>>> 'ÿ'.encode('utf-32-le')
> b'\xff\x00\x00\x00'

That all looks as expected.  Is there something about the output that
puzzles you?  Did you have a question?

-- 
Ben.


More information about the Python-list mailing list