How to send cyrillic data with indy10 Delphi

When I send Cyrillic text to a website, the text is displayed using "?????????" .... Here is my send function:

http := TIDHttp.Create(nil);
http.HandleRedirects := true;
http.ReadTimeout := 5000;
http.Request.ContentType:='multipart/form-data';
param:=TIdMultiPartFormDataStream.Create;
param.AddFormField('adtitle','  ');
param.AddFormField('area',' ');
http.Post('http://www.example.com/',param);
+3
source share
1 answer

Try it like this:

param.AddFormField('adtitle', '  ', 'utf-8').ContentTransfer := '8bit';
param.AddFormField('area', ' ', 'utf-8').ContentTransfer := '8bit';
+4
source

All Articles