i can't resolve my problem with special character, in my case "à". When i open my php file in browser, if the special character is include in database on a table with varchar utf8_general_ci the response is empty, but if i delete this character the response is normal. Could you help my please. Thank you in advance
Here my php code
<?php
include('connec.php');
$sql = "SELECT * FROM articles";
$result = $link->query($sql);
$myarray = array();
if($result->num_rows > 0){
while($row = $result->fetch_assoc()){
$myarray[] = $row;
}
// Send back the complete records as a json
echo json_encode($myarray);
}else{
echo "error";
}
$link->close();
return;
?>
";`, `echo "Step 2
";` and so on, on each line so I can see which lines get executed. – KIKO Software May 30 '22 at 20:10