For some reason this code doesn’t work with emojis when it does with normal text. The emojis basically turn invisible (I could’ve made a random emoji generator with every emoji )
7 Likes
Can u share a link so I can see it
5 Likes
6 Likes
Oh wait one sec
5 Likes
…did you manage to figure it out?
4 Likes
Most emojis have a “character length” of 2
So if you have a string with “”
Character in {string} | from | to |
---|---|---|
![]() |
0 | 2 |
![]() |
2 | 4 |
![]() |
4 | 6 |
If you try to get a character of a single length (e.g., character from 1 to 2), the result will appear to be blank.
FYI: I recategorized this topic as Debug My Code
11 Likes
And also the variables in the screenshot are wrong so I fixed those too. It still doesn’t work
2 Likes
Not sure how this is a bump but if help is needed here (@KingNomNom), it’s because emojis are actually 2 characters long most of the time!
You can see that if you tap and hold on the characters in string block.
2 Likes