i have a project that running on Laravel.
My function get files ( UTF8 files ) in storage then parse/insert datas into mysql table ( Mysql is in utf8mb4_unicode_ci ) .
I'm stucked because of this error on some files on insert : General error: 1366 Incorrect string value: '\xC2'
Concerned insert text fail : "La clairière d'Eole n°5"
The issue seems to be the "°" charactere. When i remove it, the insert work. No problem with the accent, juste the ° and i dont know why.
I tried some preg_replace, iconv but without success.