Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Sep : Fail to encode reserved characters in Indy10
| Subject: | Fail to encode reserved characters in Indy10 |
| Posted by: | "Gloria Ho" (gloria_dot_..@gmail.com) |
| Date: | 14 Sep 2006 00:14:36 |
Test with the simple program with Indy9 and Indy10, don't know why the results are not the same.
procedure TForm1.Button1Click(Sender: TObject);
var
url: TidUri;
begin
Edit1.Text := TidUri.ParamsEncode('A & 1');
end;
With Indy 9, the result is A+%26+B .
But with Indy 10, the result is A%20&%20B, which '&' is not being encoded.
Anyone can tell me why??
TIA!
Gloria Ho