问题
I'm trying to display an emoji in a Facebook Messenger bot made in NodeJS but I cannot figure out how to turn chars like http://apps.timwhitlock.info/unicode/inspect/hex/1F382 into a string I could send via the API.
Many thanks for any help.
回答1:
Some of the emojis are not supported. You will get snowflakes if you try this
decodeURI('\u2744')
whereas,
decodeURI('\uF382')
is not working.
Thanks Sriram
来源:https://stackoverflow.com/questions/41465642/how-to-display-an-emoji-in-a-facebook-messenger-bot