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

Error when using emojis on wiki pages #2020

Closed
jywarren opened this issue Jan 16, 2018 · 8 comments
Closed

Error when using emojis on wiki pages #2020

jywarren opened this issue Jan 16, 2018 · 8 comments
Labels
bug the issue is regarding one of our programs which faces problems when a certain task is executed help wanted requires help by anyone willing to contribute Ruby
Milestone

Comments

@jywarren
Copy link
Member

Please describe the problem (or idea)

What happened just before the problem occurred? Or what problem could this idea solve?

I tried to save a wiki page edit using an emoji -- 🎉

But i got an error! The logs show:

"Mysql2::Error: Incorrect string value: \xF0\x9F\x8E\x89 \x0D... for column 'body' at row 1 on this line:

Any help appreciated! Emoji are important for showing appreciation to contributors 🥇 🎈 🎉

@jywarren jywarren added bug the issue is regarding one of our programs which faces problems when a certain task is executed help wanted requires help by anyone willing to contribute Ruby labels Jan 16, 2018
@ryzokuken
Copy link
Member

@jywarren take a look at https://stackoverflow.com/a/22464749/5156578. This should solve our problem.

@jywarren jywarren added this to the Rich Wikis milestone Jan 17, 2018
@namangupta01
Copy link
Member

Does this problem also occur in development mode?

@jywarren
Copy link
Member Author

I'm not sure, but i bet we could add a functional test for the wiki controller to see if we can reproduce this. It'll work in Travis since that uses mysql!

@jywarren
Copy link
Member Author

I also wonder if this prior suggestion of a different encoding might help? #2209

@namangupta01
Copy link
Member

Yes i also remember i commented on the issue to change the encoding but not able to find that issue.

@namangupta01
Copy link
Member

got the issue...here it is #2665

@jywarren
Copy link
Member Author

#3007

@stale stale bot added the stale label Oct 7, 2020
@publiclab publiclab deleted a comment from stale bot Oct 8, 2020
@stale stale bot removed the stale label Oct 8, 2020
@jywarren
Copy link
Member Author

jywarren commented Apr 5, 2022

Solved in unicode db!

@jywarren jywarren closed this as completed Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug the issue is regarding one of our programs which faces problems when a certain task is executed help wanted requires help by anyone willing to contribute Ruby
Projects
None yet
Development

No branches or pull requests

3 participants