Bug with emojis

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 :frowning: )


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? :slight_smile:

4 Likes

Most emojis have a “character length” of 2

So if you have a string with “:slightly_smiling_face::sunglasses::innocent:

Character in {string} from to
:slightly_smiling_face: 0 2
:sunglasses: 2 4
:innocent: 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 :slightly_frowning_face:

2 Likes

this works, hope it helps :)

4 Likes

not rly a bump, @Awesome_E?

1 Like

It worked but now it’s just very laggy Random emoji generator by KingNømNøm

1 Like
of course lol, you exaggerated this in your code

1 Like

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