0

I can't show emoji using unicode in the template.lg in bot framework emulator.

# ContactBot
- Thank you. Don't hesitate to contact me anytime. \U0001F60A
Khiem
  • 11
  • 3
  • Which program language you are using? Node.js? – Karthick Nagarajan Jun 03 '20 at 05:04
  • I hope this one will be helpful https://stackoverflow.com/questions/42654936/how-to-add-emoji-to-response-from-bot-framework-from-webchat/42770295#42770295 – Karthick Nagarajan Jun 03 '20 at 05:06
  • @karthicknagarajan I'm using C# – Khiem Jun 03 '20 at 05:09
  • That `\U...` is for UTF-32, Two 2-byte chars in UTF-16 encoding for U+1F60A might be supported. First try with `😊` (a numeric entity). Conversion from UTF-32 to UTF-16 needs programming or some list. There is also https://www.iemoji.com/view/emoji/4/smileys-people/smiling-face - with which I have no experience. – Joop Eggen Jun 03 '20 at 05:13

1 Answers1

0

Please be aware that Encoding.Unicode is UTF-16 in C#. To read 32 bits Unicode, there is this Encoding.UTF32. Link on MSDN for Encoding.​UT​F32

Karthick Nagarajan
  • 1,327
  • 2
  • 15
  • 27