git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ÿ in Unicode


On 3/7/20 12:52 PM, Ben Bacarisse wrote:
> moi <wxjmfauth at gmail.com> writes:
> 
>> Le samedi 7 mars 2020 16:41:10 UTC+1, R.Wieser a ?crit?:
>>> Moi,
>>>
>>>> Fortunately, UTF-8 has not been created the Python devs.
>>>
>>> And there we go again, making vague statements/accusations - without 
>>> /anything/ to back it up ofcourse
>>>
>>> Kiddo, you have posted a couple of messages now, but have said exactly 
>>> nothing.   Are you sure you do not want to go into politics ?
>>>
>> The day, when this language will stop to interpret a byte
>> as being a Latin-1 (ISO-8859-1) character, this language will
>> start to work properly.
> 
>>>> "?".encode('iso-8859-1')
> b'\xff'
> 

or the reverse.

b'\xff'.decode('iso-8859-1')
'?'

iso-8859-1 just isn't the DEFAULT character encoding to use.