Encodes a string using percent-encoding, specifying which characters should be encoded (optionally including reserved characters).Namespace: Facilita.Web
Assembly: clrWebBrowser (in clrWebBrowser.dll) Version: 126.96.36.199 (188.8.131.52)
The text to percent-encode.
A string containing a list of characters that need to be percent-encoded.
true if reserved characters should be encoded.
Return ValueThe encoded text.
A character in the string will be percent-encoded if:
- It is outside the printable ASCII range (i.e. is not in the ASCII range 32 to 127) OR
- It is one of the defined unsafeCharacters OR
- It is a reserved character, and encodeReservedCharacters has the value true
For more information about percent-encoding, refer to RFC 3986.
The following example demonstrates encoding a string.