Re: Idle Python issue

2021-02-24 Thread Terry Reedy
On 2/24/2021 5:32 AM, jak wrote: Hello everybody, I encounter a problem using Idle Python in Windows when I use utf8 characters longer than 2 bytes such as the character representing the smile emoticon: The problem is with 'astral' unicode characters, those not in the Basic Multilingual Plan

Idle Python issue

2021-02-24 Thread jak
Hello everybody, I encounter a problem using Idle Python in Windows when I use utf8 characters longer than 2 bytes such as the character representing the smile emoticon: :-) that is this: 😊 Try to write this in Idle: "😊".encode('utf8') b'\xf0\x9f\x98\x8a' now try to write this: "".encode('utf8'