print('\N{flag: Mauritius}') not supported in py3.9

Cameron Simpson cs at cskk.id.au
Sun Nov 28 18:06:00 EST 2021


On 29Nov2021 09:19, Chris Angelico <rosuav at gmail.com> wrote:
>On Mon, Nov 29, 2021 at 8:10 AM dn via Python-list
><python-list at python.org> wrote:
>> However, when trying the above, with our local flag in (Fedora Linux,
>> Gnome) Terminal or PyCharm's Run terminal; the two letters "N" and "Z"
>> are shown with dotted-outlines. Similarly, the Mauritius' flag is shown
>> as "M" and "U".
>>
>> Whereas here in email (Thunderbird) or in a web-browser, the flags
>> appear, as desired.
>>
>> Is this a terminal short-coming (locale charmap -> UTF-8 - which brings
>> to mind the old UCS-4 questions), a font issue, or what (to fix)?
>
>Probably a font issue. Not many fonts support the flags.

Agree about the font support. Some terminal emulators make an effort to 
have fallback fonts for when your preferred font lacks a glyph. IIRC 
urxvt is such a terminal on Linux.

Cheers,
Cameron Simpson <cs at cskk.id.au>


More information about the Python-list mailing list