-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Strapi Save Emoji as ???? (Question marks) in MySql Database #10676
Comments
Can you please confirm what char encoding your MySQL database is set to? As MySQL defaults to latin1 / latin1_swedish_ci instead of utf8mb4. |
@derrickmehaffy Hi Thanks for the response but I've changed encoding to utf8mb4_unicode_ci in phpMyAdmin but still, it doesn't work. |
Make sure the database and the table are set to utf8mb4 and keep in mind that by changing that doesn't change the currently stored data, only new data will have that encoding. |
still don't work |
Still don`t work!! |
hey @machengda89 which database you are using?? |
Hey, try to follow #10468 (comment). 1 - change wanted columns to 2 - In It works for me |
works in a certain way for me... it tends to save some emojis normally, tho some of them are still as ????. any possible solution? |
I add two lines on config/database:
My code looks as: |
I've done the following: 1- added, as mentioned before, in config/database:
2- Edited the column:
3- Edited the table:
It's working like a charm |
Bug report
Describe the bug
Strapi Save Emoji as ???? (Question marks) in MySql Database
Steps to reproduce the behavior
Screenshots
Bug Image
![strapi issue](https://user-images.githubusercontent.com/48683374/127856311-5abb7132-f743-4178-90a6-10a988ec9387.png)
System
Additional context
it works fine with the default database (SQLite)
The text was updated successfully, but these errors were encountered: