-
Notifications
You must be signed in to change notification settings - Fork 638
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
Add support for emoji 🙏 #1627
Comments
Fixed for Craft 3 / MySQL. Not an issue on PostgreSQL, though, and I didn’t get any errors in Craft 2. |
Is this fixed? I'm still getting the same error, regardless of my database charset and collation. Craft 3.0.21. |
@lazlo-bonin We’ve fixed it as best as we can for MySQL using the LitEmoji library, but it only supports a subset of Emoji. So it depends. |
Hey @brandonkelly, Sorry if this is the wrong place to post this, I can see there are a bunch of posted issues around this, just didn’t want to start a new one. |
@tomkiss How is the template getting cached? Craft’s cms/src/services/TemplateCaches.php Lines 294 to 297 in 8181490
|
Thanks Brandon, |
Description
Craft 3 doesn't seem to support emoji in any field that I tried (plain text, rich text, category). 😿
I found this StackExchange answer from @takobell where he states that Craft will automatically HTML encode emoji in a rich text field. This doesn't seem to be the case. His answer also mentions the possibility to set the database charset and collation to
utf8mb4
andutf8mb4_unicode_ci
. Will this work with Craft 3? Is it advisable to do?Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: