surrogate-pairs

How can I convert surrogate pairs to normal string in Python?

How can I convert surrogate pairs to normal string in Python? Question: This is a follow-up to Converting to Emoji. In that question, the OP had a json.dumps()-encoded file with an emoji represented as a surrogate pair – ud83dude4f. S/he was having problems reading the file and translating the emoji correctly, and the correct answer …

Total answers: 2