سلام
من متاسفانه عکس این مشکل رو دارم یعنی از دلفی میخوام پارامتر به سرور بفرستم،سمت سرورساید نوشته شده و سرور دو پارامتر ورودی رو میخونه و اونها رو در یک فایل تکست مینویسه
تا وقتی پارامتر انگلیسی هست همه چی درست کار میکنه ولی وقتی پارامتر فارسی میشه،به جای اونا روی فایل تکستی که سرور درست میکنه علامت سوال دیده میشه
کد من اینه
try
Stream := TIdMultiPartFormDataStream.Create;
pos:=TStringStream.Create;
stream.AddFormField('name', 'farsi name');
stream.AddFormField('family', 'farsi family');
try
try
try
http:=TIdHTTP.Create(self);
HTTP.HandleRedirects := True;
HTTP.AllowCookies := True;
with http do
begin
Request.ContentType := 'application/x-www-form-urlencoded;';
Request.CharSet := 'utf-8';
Request.AcceptCharSet := 'utf-8';
Request.UserAgent := 'agent2';
Request.Connection := 'Keep-Alive';
Request.ProxyConnection := 'Keep-Alive';
Request.CacheControl := 'no-cache';
HTTP.post('http://site.com/order/index.php',stream ,pos);
end;
except
on E: Exception do
ShowMessage('Error happend during POST: ' + E.Message);
end;