How to remove  in a PHP string

后端 未结 7 2086
太阳男子
太阳男子 2021-01-14 07:36

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}&         


        
7条回答
  •  庸人自扰
    2021-01-14 08:03

    It's a byte order mark (BOM), indicating the response is encoded as UTF-8. You can safely remove it, but you should parse the remainder as UTF-8.

提交回复
热议问题