I'm using IDLE 3 (with python 3.5.2) to work interactively with Twitter data, which of course contains emojis. Whenever the running program tries to print the text of a tweet with an emoji, it barfs this & stops running:
UnicodeEncodeError: 'UCS-2' codec can't encode characters in position 102-102: Non-BMP character not supported in Tk Is there any way to set IDLE to ignore these characters (either drop them or replace them with something else) instead of throwing the exception? If not, what's the best way to strip them out of the string before printing? Thanks, Adam -- https://mail.python.org/mailman/listinfo/python-list