This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky
Date 2014-10-27.16:18:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1414426704.85.0.168243800807.issue22742@psf.upfronthosting.co.za>
In-reply-to
Content
>>> print("\N{ROCKET}")
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    print("\N{ROCKET}")
  File "idlelib/PyShell.py", line 1352, in write
    return self.shell.write(s, self.tags)
UnicodeEncodeError: 'UCS-2' codec can't encode character '\U0001f680' in position 0: Non-BMP character not supported in Tk

Shouldn't IDLE replace non-encodable characters with "\uFFFD"?

I think

>>> "\N{ROCKET}"
�

is user-friendlier than the traceback.

See also #14304.
History
Date User Action Args
2014-10-27 16:18:24belopolskysetrecipients: + belopolsky
2014-10-27 16:18:24belopolskysetmessageid: <1414426704.85.0.168243800807.issue22742@psf.upfronthosting.co.za>
2014-10-27 16:18:24belopolskylinkissue22742 messages
2014-10-27 16:18:24belopolskycreate