0

I am getting the following error message :

[Illuminate\Database\QueryException]                                                                                                                                                                                       
  SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_unicode_ci,COERCIBLE) for operation '=' (SQL: select * from `tblleaddocs` where (`docname` = Discover_Online_Savingś.pdf and `leadId` = 0) limit 1)

Noteice the where condition : the doc name is Discover_Online_Savingś.pdf and it have ś. I know that its collations related issue

I have tried the changing the table charset and collation from latin1_swedish_ci to utf8_unicode_ci and utf8mb4_general_ci but still its not working for me and getting the same issue.

The actual laravel query from which i am getting that error :

DB::table('tableName')->where('docname', $originalfile)->first();

Gammer
  • 5,453
  • 20
  • 78
  • 121

0 Answers0