0

Can somebody help me why am I getting question mark when I'm sending arabic alphabets?

Here is my code:

<?php 
$ctx = stream_context_create(array( 
    'http' => array( 
        'timeout' => 1 
     ) 
));

$fra = $_GET["f"];
$til = explode('-',$_GET["t"]);
$text = urlencode($_GET['m']);
foreach($til as $til ) {
    file_get_contents("http://www.example.com/api/sendSms.php?
        apiKey=xxxxxxxxx&charset=UTF-8&senderId=$fra&mobile=$til&message=$text", 0, $ctx
    );
}
?>
alexander.polomodov
  • 5,396
  • 14
  • 39
  • 46
Zabkas
  • 67
  • 9

0 Answers0