I have a PHP application that calculate all my data and return answers to HTML page with AJAX and JQuery. in top of my PHP code I add
header("Content-Type: text/html; charset=utf-8");
and return data with
echo json_encode($returndata);
and also i save my file with UTF-8 Format all things work good with HTML but when i get PHP response with a another program for example Delphi IDHTTP then arabic character show like :\u06f2 \u0634\u0647\u0631\u06cc\u0648\u0631 \u06f1\u06f3\u06f9\u06f9 \u06f1\u06f4:\u06f1\u06f3
i run PHP on server with IIS
here is my Delphi code
try
RespJson := IdHTTP1.Post
('http://192.168.0.6:1000/allcalculate.php',data);
finally
data.Free;
end;
delete(RespJson,length(RespJson),1);
delete(RespJson,1,1);
RespJson := StripChars(RespJson,['"']);
arrresp:= splitstring(RespJson,',');
arrresp:=splitstring(arrresp[30],':');
advedit48.Text:=arrresp[1];
how can i fix this problem thank you and sorry for bad english