Problem with Unicode char in Python 3.3.0

Chris Angelico rosuav at
Mon Jan 7 14:04:43 CET 2013

On Mon, Jan 7, 2013 at 11:57 PM, Franck Ditter <nobody at> wrote:
> <<< print('\U0001d11e')
> Traceback (most recent call last):
>   File "<pyshell#1>", line 1, in <module>
>     print('\U0001d11e')
> UnicodeEncodeError: 'UCS-2' codec can't encode character '\U0001d11e'
> in position 0: Non-BMP character not supported in Tk

That's a different issue; IDLE can't handle non-BMP characters. Try it
from the terminal if you can - on my Linux systems (Debians and
Ubuntus with GNOME and gnome-terminal), the terminal is set to UTF-8
and quite happily accepts the full Unicode range. On Windows, that may
well not be the case, though.


More information about the Python-list mailing list