I am trying to use the Microsoft Bing API.
$data = file_get_contents(\"http://api.microsofttranslator.com/V2/Ajax.svc/Speak?appId=APPID&text={$text}&
You could use substr to only get the rest without the UTF-8 BOM:
// if it’s binary UTF-8 $data = substr($data, 3); // if it’s percent-encoded UTF-8 $data = substr($data, 9);