I execute the following code
mysql_connect("localhost","ххх","ххх"); mysql_query("SET NAMES utf8"); mysql_select_db("ххх"); $sql=mysql_query("select * from graph"); while($row=mysql_fetch_assoc($sql)) $output[]=$row; //$str = str_replace(""","\"",$output); echo json_encode($output); mysql_close(); in response, I get a string with unshielded quotes ... how to shield? as you can see from the code, attempts were made to replace via str_replace, but it also did not work ..