I used to upload my websites on namecheap and when uploading arabic content it was stored like this in database "سيارة خضراء" but display fine on website but now when I uploaded the site and database on different hosting on another company the data displays as "سيارة خضراء" is there is anything to solve this problem I tried searching a lot! Also I'm wondering if the problem is related to server charset and if so how to change it?
I tried putting codes like
$sSQL= 'SET CHARACTER SET utf8';
mysqli_query($con,$sSQL);
mysqli_query("SET NAMES 'utf8'");
mysqli_query('SET CHARACTER SET utf8');
mysqli_set_charset($link, "utf8");
but nothing worked!