次のエラー メッセージが表示されましたが、修正方法がわかりません: "PHP 警告: json_encode() [function.json-encode]: Invalid UTF-8 sequence" at this php script:
<?
$sth = mysql_query("SELECT *
FROM produse_comenzi
JOIN comenzi
ON comenzi.id_comanda = produse_comenzi.id_comanda
JOIN (SELECT DISTINCT numar_factura, id_comanda FROM facturi) AS facturi
ON facturi.id_comanda = comenzi.id_comanda
AND comenzi.data >= '". $_GET['i'] ."' AND comenzi.data <= '". $_GET['d'] ."'
JOIN produse ON produse.id_produs = produse_comenzi.id_produs");
$rows = array();
while($r = mysql_fetch_assoc($sth)) {
$rows[] = $r;
}
print json_encode($rows);
?>