Paul
Paul

Reputation: 26680

Unicode POST parameters with Indy 10 and Delphi 6

I am using Indy 10 with Delphi 6 and until now managed to pass contents as UTF-8.

Unfortunately, params are parsed as ANSI, replacing, for example, ö with o when not the central european code page is the default.

Could I get POST request parameters at least as UTF-8 if I am not able to get WideString immediately?

procedure TTheServer._serverCommandGet(AContext: TIdContext;
  ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo); // Indy 10
begin
  ARequestInfo.Params.Values['ParamName']; // Returns ANSI in Delphi 6
end;

Upvotes: 0

Views: 53

Answers (0)

Related Questions