We use cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.
Hi, I'm trying to install the latest libraries setup (January 2024), but the setup fails compiling sgcHTTP_OpenAPI_Client.pas on line 515.
I'm using delphi 12 but strangely the compilation directive "D2010" is defined so the code tries to execute the code between {$ELSE} and {$ENDIF}
// convert to UTF8 if enabled
if EncodeBodyAsUTF8 then
aRequest.Body := {$IFNDEF D2010}UTF8Encode(aRequest.Body){$ELSE}aRequest.Body ,TEncoding.UTF8{$ENDIF};
At the moment I solved it by forcing the code to execute the "UTF8Encode(aRequest.Body)" instruction.
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »