Re: ÿ in Unicode
Chris Angelico
rosuav at gmail.com
Fri Mar 6 22:25:58 EST 2020
On Fri, Mar 6, 2020 at 9:31 PM Ben Bacarisse <ben.usenet at bsb.me.uk> wrote:
>
> moi <wxjmfauth at gmail.com> writes:
>
> > Le jeudi 5 mars 2020 13:20:38 UTC+1, Ben Bacarisse a ÄäCcrit :
> >> 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.
> > Yes
> >
> >>Is there something about the output that puzzles you?
> > No
> >
> >>Did you have a question?
> > No, only a comment
> >
> > This buggy language is very amusing.
>
> Whilst I am happy that you are entertained by Python, the ability to
> encode strings in various transfer formats does not strike me as being
> particularly amusing. But there's little enough happiness in the world,
> so take it where you can!
>
FYI he's blocked from the mailing list and is in most people's
killfiles. Ignore him - he never has anything useful to say, and his idea of "buggy" disagrees with, well, the whole rest of the world.
ChrisA
More information about the Python-list
mailing list