Unicode failure

Chris Angelico rosuav at gmail.com
Sat Dec 5 01:10:40 EST 2015


On Sat, Dec 5, 2015 at 5:06 PM, Terry Reedy <tjreedy at udel.edu> wrote:
> On 12/4/2015 10:22 PM, Random832 wrote:
>>
>> On 2015-12-04, Terry Reedy <tjreedy at udel.edu> wrote:
>>>
>>> Tk widgets, and hence IDLE windows, will print any character from \u0000
>>> to \uffff without raising, even if the result is blank or �.  Higher
>>> codepoints fail, but allowing the entire BMP is better than any Windows
>>> codepage.
>>
>>
>> Well, any bar 1200, 1201, 12000, 12001, 65000, 65001, and 54936.
>
>
> Test before you post.
>
>>>> for cp in 1200, 1201, 12000, 12001, 65000, 65001, 54936:
>         print(chr(cp))
>
>
> Ұ
> ұ
>>>>>
Those numbers aren't codepoints, they're code pages. Specifically,
they're UTF-16, UTF-32, UTF-8, and I'm not sure what 54936 is.

ChrisA



More information about the Python-list mailing list