I need help please
I have write some code to read a HTTPS GET, and it works fine.
But now i need to use the same code that return a xml-file with unicode utf-16, and this give me error.
procedure TFormMain.Button2Click(Sender: TObject);
var
Parser: TDOMParser;
Src: TXMLInputSource;
Doc: TXMLDocument;
Req: String;
begin
Try
Parser := TDOMParser.Create;
Req :='https://mysite.dk/thexmlfile';
Src := TXMLInputSource.Create(TFPCustomHTTPClient.SimpleGet(Req));
Parser.Options.Validate := True;
Parser.Parse(Src, Doc);
WriteXMLFile(Doc, 'my.xml');
The problems starts already when i initalizer the Scr variabel with feed. (use utf-8????)
Is there a way to get the utf-16 xml file from the feed into a variable than i can handel?