System.Net.URLClient.TURI.URLEncode
Delphi
class function URLEncode(const AValue: string; SpacesAsPlus: Boolean = False): string; static; deprecated 'Use TNetEncoding.URL.Encode';
C++
static System::UnicodeString __fastcall URLEncode _DEPRECATED_ATTRIBUTE1("Use TNetEncoding.URL.Encode") (const System::UnicodeString AValue, bool SpacesAsPlus = false);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Net.URLClient.pas System.Net.URLClient.hpp |
System.Net.URLClient | TURI |
Description
Warning: URLEncode is deprecated. Please use NetEncoding.TNetEncoding.URL.
Performs an URL percent encoding.
URLEncode performs an URL percent encoding of the String AValue
.
If SpacesAsPlus
is True
white spaces are converted to +
instead of %20
.