Encodes a string using percent-encoding.
Namespace: Facilita.WebAssembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.7.98 (1.0.0.0)
Syntax
Parameters
- urlFragment
- Type: System String
The text to percent-encode.
Return Value
The encoded text.Remarks
- It is outside the printable ASCII range (i.e. is not in the ASCII range 32 to 127) OR
- It is one of the DefaultUnsafeCharacters
For more information about percent-encoding, refer to RFC 3986.
Examples
string encoded = Coder.UrlEncode("search?q=camera"); // encoded == search%3Fq%3Dcamera
See Also