Character Encoding Python Surrogate Pairs Unicode Utf 8 Python 2.7: Strange Unicode Behavior June 17, 2024 Post a Comment I am experiencing the following behavior in Python 2.7: >>> a1 = u'\U0001f04f' #1… Read more Python 2.7: Strange Unicode Behavior