I migrated a project to a new host. So I transferred my files and my database. But since then, my sql queries with accented characters no longer work (NULL):
php file:
$ product = 'Gestion réseaux sociaux';
$ handle-> query ('SELECT social_networks FROM sale WHERE id_customer = "'. $ id. '" AND product = "'. $ product. '"');
In addition, the accented characters displayed in the view from the database are not displayed correctly.
However, the rest of the written text content that does not come from the database displays the accented characters.
I still put the meta:
<meta http-equiv = "Content-Type" content = "text / html; charset = UTF-8" />
So I deduce that it comes from the encoding of the database but it is identical to that of my former host (UTF8_unicode_ci)
What can be the reason for you?
Thank you in advance for your help !!