question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using UTF-32 in Language Generation template.

See original GitHub issue

I can’t show emoji using UTF-32 in the template.lg in bot framework emulator.

# ContactBot
- Thank you. Don't hesitate to contact me anytime. \U0001F60A

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Danieladucommented, Jun 6, 2020

@khiemnvd sorry for the blocking. Currently, LG does not support the \U escape, So, the “\U0001F60A” in LG is really a constant string. The workaround is just paste the UTF-8 format emoji into the LG file, it supposed to work. Snipping picture:

image

In emulator: image

Thanks

0reactions
khiemngcommented, Jun 6, 2020

@khiemnvd sorry for the blocking. Currently, LG does not support the \U escape, So, the “\U0001F60A” in LG is really a constant string. The workaround is just paste the UTF-8 format emoji into the LG file, it supposed to work. Snipping picture:

image

In emulator: image

Thanks

Thanks @Danieladu , I hope LG will support in the next release version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I insert emoji unicode in Language Generation ...
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...
Read more >
FAQ - UTF-8, UTF-16, UTF-32 & BOM
This format compresses Unicode into 8-bit format, preserving most of ASCII, but using some of the control codes as commands for the decoder....
Read more >
UTF32 Encode Decode
UTF-32 is a character encoding standard representing each character in the Unicode standard using a fixed 32-bit encoding. While it was once popular, ......
Read more >
Language generation in Bot Framework Composer
Construct cards, suggested actions and attachments using a structured response template. Language generation is achieved through: A Markdown ...
Read more >
Choosing & applying a character encoding
A Unicode-based encoding such as UTF-8 can support many languages and can accommodate pages and forms in any mixture of those languages. Its...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found