Answer the question
In order to leave comments, you need to log in
How to process string with emoji in python?
The task is to save the comments to the post, but if any emoticon appears in the comments, an error pops up:
UnicodeEncodeError: 'UCS-2' codec can't encode characters in position 41
Googled the solution with non_bmp_map = dict.fromkeys(range(0x10000, sys. maxunicode + 1), 0xfffd) then UnicodeEncodeError: 'charmap' codec can't encode character '\ufffd' in position 41: character maps to
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question