I am trying to post a message to the facebook feed / wall / timeline that has a £ symbol in it.
I have tried:
mb_internal_encoding("UTF-8");
$message = "TEST: £ £ £";
and setting:
mb_internal_encoding("UTF-8");
mb_http_output( "UTF-8" );
No luck…
The PHP document is saved as UTF8.
Anyone know how to post a £ symbol to the wall via a php script? The post mechanism is working fine.
So one of the values on the array facebook gets is:
$message = "TEST: £ £ £";
$DataArray["message"] = $message;
and the FB command is:
$result = $facebook->api("/me/feed", "post", $DataArray);
Result is a diamond shape with ? in it. � for the £ symbol the others just write out.
Found the reason. I was using ScriptFTP to batch upload files, Filezilla sorted it out. It mus t have been changing the format or something during upload.