Closed greatestview closed 5 years ago
There is a mysql error Incorrect string value: '\xF0\x9F\x99\x88\xF0\x9F...' for column 'title' at row 1
but not with all instances. My dev wordpress has no problem, but one of our projects has.
So it depends on the used emojies. ππ€·ββοΈπ±these ones always make trouble. I changed the column collation to utf8mb4_unicode_520_ci and then the error is gone but the result is not what I want.
@mkernel
I think I need your help with this:
We will write a unit test which only writes and reads string with emojies
@greatestview
No easy fight but I think I won! π
https://github.com/palasthotel/grid/commit/6edd69ed7657d7b32b8cc14c115fdf7f2525b4e9
When you try to save a container title with a Unicode character, e. g. an emoji, the changes wonβt be stored inside the database on save, although database table and field are encoded as utf8mb4.
Steps to reproduce:
Test ππ€·ββοΈπ±
.