I need to download a file of TreeView in Unicode using idHTTP (String := idHTTP.Get
). After downloading, I need do something with the string and then put it in a TTreeView. I'm using Delphi 2010.
s:=form2.idhttp1.Get(Adres+'list.ttt');
....
StrStream:=TStringStream.Create(s,t encoding.Unicode);
form2.TreeView1.LoadFromStream(strstream);
StrStream.Free;
I cannot see Unicode in S
or TreeView1
. I only see Unicode in S
if I try to download not list.ttt but list.html. What do I need to set in idHTTP or something else to work properly?