Telegram Binding and Unicode Icons

  • Platform information:
    • openHAB version: 4.0.0.M3

Hey, i use in some rules the Telegram Binding and would pimp the Message with Icons.
But I had to realize that I can only use the ones starting with 2. Is that simply so, or how can I use the rest?

https://unicode.org/emoji/charts/full-emoji-list.html

for example this work, but all this start with 1xxx dont work, some character arrives in the message, but no icon.

2139
26A0
203C
2709

	telegramAction.sendTelegram("\u2709 Wettermeldung:\n- " + triggerItemLabel + " - Mittel bis Hoch")  

It is not just 1xxx it is 1xxxx. Which makes a difference.
Instead of using \u1F000 you need to use \uD83D\uDE00.
These are surrogates codes.

See e.g. https://apps.timwhitlock.info/unicode/inspect?s=😀 to find the code that is required ( column surrogates ).

Thanks for the information this has helped me :smiley:

1 Like