How to remove  in a PHP string

后端 未结 7 2113
太阳男子
太阳男子 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 07:53

    I had the same problem today, and fixed by ensuring the string was set to UTF-8:

    http://php.net/manual/en/function.utf8-encode.php

    $content = utf8_encode ( $content );

提交回复
热议问题