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

find_by_moji can't parse ❤ emoji. #32

Open
ID25 opened this issue Apr 8, 2016 · 0 comments
Open

find_by_moji can't parse ❤ emoji. #32

ID25 opened this issue Apr 8, 2016 · 0 comments

Comments

@ID25
Copy link
Contributor

ID25 commented Apr 8, 2016

index.find_by_moji('❤')
# => nil

When i parse emoji from json, heart and maybe a few more emoji's are broken.
I figured out the problem, and found something.
Can you fix it?

# This emoji return nil:
"❤".bytes
# => [226, 157, 164]

#This is correct:
"❤️".bytes
# => [226, 157, 164, 239, 184, 143]
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