Class WechatEmojiConverter


  • public class WechatEmojiConverter
    extends Object
    • Field Detail

      • logger

        protected final org.slf4j.Logger logger
      • unsupportedUnicodeBlocks

        protected final List<String> unsupportedUnicodeBlocks
    • Constructor Detail

    • Method Detail

      • convertFromWeChatToUTF8

        public String convertFromWeChatToUTF8​(String input)
      • convertFromUTF8ToWeChat

        public String convertFromUTF8ToWeChat​(String input)
      • hasUnsupportedEmojis

        public boolean hasUnsupportedEmojis​(String input)
        returns true if the input contains an unsupported emoji (utf8 characters within the ranges definde din unsupportedUnicodeBlocks
        Parameters:
        input - the input string to be tested against
        Returns:
        true if the input contains an unsupported emoji