I have attributes of name and phone using TextColumn searchable method. the user sometimes accidentally paste the text in search input with emoticon in it, and these error appeared..
Error: SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (utf8mb3_general_ci,IMPLICIT) and (utf8mb4_unicode_ci,COERCIBLE) for operation 'like' (Connection: mysql, SQL: select * from
prospek
prospek
where
phone
phone
LIKE %asyaaAllahAlhamdul% or
name
name
LIKE %Maa syaa Allah Alhamdulillah.. % limit 10)
how can I return the search result to null, or remove the emoticon if it exist in the string again?