Remove ✅,

前端 未结 7 1775
离开以前
离开以前 2020-11-28 20:03

I have some strings with all kinds of different emojis/images/signs in them.

Not all the strings are in English -- some of them are in other non-Latin languages, for

7条回答
  •  再見小時候
    2020-11-28 20:47

    ICU4J is your friend.

    UCharacter.hasBinaryProperty(UProperty.EMOJI);
    

    Remember to keep your version of icu4j up to date and note this will only filter out official Unicode emoji, not symbol characters. Combine with filtering out other character types as desired.

    More information: http://icu-project.org/apiref/icu4j/com/ibm/icu/lang/UProperty.html#EMOJI

提交回复
热议问题