Is there a Delphi equivalent of .net's Url.UrlEncode()?
A:
Ólafur Waage
2009-04-22 09:16:28
Sorry, but this is not correct, check the other answers.
Gamecat
2009-04-23 12:02:23
I stand corrected.
Ólafur Waage
2009-04-23 17:03:57
+23
A:
Look at indy IdURI unit, it has two static methods in the TIdURI class for Encode/Decode the URL.
uses
IdURI;
..
begin
S := TIdURI.URLEncode(str);
//
S := TIdURI.URLDecode(str);
end;
Mohammed Nasman
2009-04-22 09:20:40
boris, come on, accept this answer, I just gave it a point for being totally helpful :)
Peter Perháč
2009-04-23 13:59:11
A:
In a non-dotnet environment, the Wininet unit provides access to Windows' WinHTTP encode function: InternetCanonicalizeUrl
Stijn Sanders
2009-04-23 07:28:31