P plager Member Aug 19, 2024 #1 Hi folks, according to this thread created by me: Get emoticons (emoji) from string one-by-one Hello community, I am struggling to get emoticons from the string one-by-one. Consider this: I have a string with emoticons. This string is correctly displayed when displaying it as whole string . Dim str as string = "????????❤️" Log(str) It correctly show the whole string. But when I try to... www.b4x.com Erel suggested this code: B4X: Private Sub LogEachSimpleEmoji(s As String) Dim b() As Byte = s.GetBytes("UTF-32LE") For i = 0 To b.Length - 3 Step 4 Dim s As String = BytesToString(b, i, 4, "UTF-32LE") Log(s) Next End Sub It works flawlessly. However, I'd like to ask about that coding 'UTF-32LE'. Where it came from? Is there any list of those codings? I've got few of those through the forum, but not this one. Anyway, all those codings look a bit confusing to me. Is any chance to get a comprehensive list of those codings, ideally with some explanation or so? Thanks for your time folks. P.
Hi folks, according to this thread created by me: Get emoticons (emoji) from string one-by-one Hello community, I am struggling to get emoticons from the string one-by-one. Consider this: I have a string with emoticons. This string is correctly displayed when displaying it as whole string . Dim str as string = "????????❤️" Log(str) It correctly show the whole string. But when I try to... www.b4x.com Erel suggested this code: B4X: Private Sub LogEachSimpleEmoji(s As String) Dim b() As Byte = s.GetBytes("UTF-32LE") For i = 0 To b.Length - 3 Step 4 Dim s As String = BytesToString(b, i, 4, "UTF-32LE") Log(s) Next End Sub It works flawlessly. However, I'd like to ask about that coding 'UTF-32LE'. Where it came from? Is there any list of those codings? I've got few of those through the forum, but not this one. Anyway, all those codings look a bit confusing to me. Is any chance to get a comprehensive list of those codings, ideally with some explanation or so? Thanks for your time folks. P.
DonManfred Expert Licensed User Longtime User Aug 20, 2024 #2 Character encoding - Wikipedia en.wikipedia.org Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 20, 2024 #3 Start here: https://unicodebook.readthedocs.io/unicode_encodings.html Upvote 0