I have a table where the data are stored like boîtes
with none utf8 characters. Now I have my php script which works fine on my local machine.
$utf = utf8_decode($details);
echo "UTF8-DE : ".$utf."<hr>";-> `boîtes`
When I put this script on another machine its not working its echoing boîtes
. I am sure it depends on the charset of the php or server? Any help please
Try
set_charset
functionFor mySqli
For mySql
Alternative
Set it up with headers
header('Content-type: text/html; charset=utf-8');