Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latin Cross #470

Open
amitfriedman12 opened this issue Jan 10, 2019 · 0 comments
Open

Latin Cross #470

amitfriedman12 opened this issue Jan 10, 2019 · 0 comments

Comments

@amitfriedman12
Copy link

amitfriedman12 commented Jan 10, 2019

Why is it that the latin cross emoji contains a nasty utf8 character as a second char?

Normal emoji:

$ heart = "💟"
=> "💟"
$ heart.length
=> 1
$ encoded_heart = Rumoji.encode heart
=> ":heart_decoration:"

Latin Cross Emoji

$ string = "✝️"
=> "✝️"
$ string.length
=> 2

$ string[0]
=> "✝"
$ string[1]
=> "️"
$ string[1] == "\xEF\xB8\x8F"
=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant