01/03/2023
Problemin asıl sebebi utf-8 probleminde kaynaklı. Ben kodlamamı notpead ++ ile yaptığım için aşağıdaki yolu izeleyerek çözdüm. Yapmanız gereken resimdeki gibi
- ANSI’ ye Dönüştür tıklamak sonra
- UTF-8’ e Dönüştür tıklamak
İşlem bukadar.
Örnek Kod Yapısı
$data=array('ad'=> $ad,'soyad'=> $soyad);
echo json_encode($data);
$arrContextOptions=array("ssl"=>array("verify_peer"=>false,"verify_peer_name"=>false,),);
$response = file_get_contents("https://www.ornek.com", false, stream_context_create($arrContextOptions));
echo $response;
Kolay gelsin.