Encode a high code point (> U+FFFF) to HTML entities

前端 未结 1 1897
孤独总比滥情好
孤独总比滥情好 2021-01-20 20:22

I have an input string (URL-encoded):

%F0%9F%98%8E

which decoded is the emoji \"

1条回答
  •  一个人的身影
    2021-01-20 21:19

    This will return 😎

    (note, this answer is based on a modified version of functions provided by this answer here.)

    0 讨论(0)
提交回复
热议问题