This sample shows how to save data received by the TclHttp component in the UTF-8 format in Delphi 2009, 2010, XE and XE2.
var
strURL: string;
html: TStringStream;
begin
strURL:='Something here';
html := TStringStream.Create('', TEncoding.UTF8);
try
clHttp1.Get(strURL,html);
Memo1.Text:=html.DataString;
finally
html.Free;
end;
end;
Article ID: 50, Created: May 25, 2012 at 12:50 PM, Modified: December 3, 2019 at 4:12 PM