I haven't specifically seen this issue before but
SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_unicode_ci,COERCIBLE) for operation '=' (SQL:
select `id` from `data` where `thing` = خ@gmail.com limit 1
I'm pretty sure خ@gmail.com is not a valid email address but I am not too sure why Laravel's DB functions passed this to my server. Shouldn't it be aware of the character set and collation of the database it's using? Is the right solution to change the character set and collation to UTF-8 so that this doesn't cause general errors on my MySQL server?
Is there any consensus of what the correct character set and collation should be?