Home > Software engineering >  How can I convert a 4-byte string into an unicode emoji?
How can I convert a 4-byte string into an unicode emoji?

Time:11-11

A webservice i use in my Delphi 10.3 returns a string to me consisting of these four bytes: F0 9F 99 82 . I expect a slightly smiling emoji. This site shows this byte sequence as the UTF-8 representation of that emoji. So I guess i have a UTF-8 representation in my string, but its an actual unicode string? How do i convert my string into the actual unicode representation, to show it, for example, in a TMemo?

CodePudding user response:

The character

  • Related