1

nexmo サービスを使用してヘブライ語の特定の番号に SMS を送信してますが、メッセージは %D7%AA%D7 として届きました。(私の言語はPHPです)、これは私のコードです:

$message = $_REQUEST["message"];

//Build the url 
$url = 'https://rest.nexmo.com/sms/json?' . http_build_query(
    [
      'api_key' =>  '******',
      'api_secret' => '*******',
      'to' => '9725433131',
      'from' => '4416329600',
      'text' => urlencode($message)
    ]
);
//Send the data
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_ENCODING, 'UTF-8');
$response = curl_exec($ch);

echo $response;
4

1 に答える 1