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

Work with utf8mb4 #48

Open
gdomingu opened this issue Aug 5, 2019 · 2 comments
Open

Work with utf8mb4 #48

gdomingu opened this issue Aug 5, 2019 · 2 comments

Comments

@gdomingu
Copy link

gdomingu commented Aug 5, 2019

Hi there, I noticed that when using this gem emojis get converted to four of the replacement characters (����). Wondering if it would be possible to include maybe a setting or something to also work with utf8mb4 characters.

@whitequark
Copy link
Owner

Feel free to send a PR, I haven't used Ruby in years.

@ndbroadbent
Copy link

ndbroadbent commented May 21, 2020

Hi @gdomingu, I've just started using rack-utf8_sanitizer in my project, and I'm looking at all of the open issues to see if there are any problems I should be aware of.

I've just added a new test case in my app to ensure that people can enter emoji characters into inputs and use these as name or title attributes etc. I haven't seen any problems with this so far.

Is this still a problem for you? Where are the utf8mb4 characters getting broken in your app?

(P.S. Sorry to bother you whitequark!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants