ZennoLab Assemblies Documentation
UrlEncode Method
Example 
ZennoLab.Macros Namespace > TextProcessing Class : UrlEncode Method

Type: System.String

The source string.

Type: System.String

Name of encoding, UTF-8 by default.

Encodes the string to UrlEncode.
Syntax
public static string UrlEncode( 
   string sourceString,
   string encodingName
)

Parameters

sourceString

Type: System.String

The source string.

encodingName

Type: System.String

Name of encoding, UTF-8 by default.

Return Value

Type: System.String

A encoded string.

Example
The following example shows call the UrlEncode method.
var result = Macros.TextProcessing.UrlEncode("<");
return result;
 
// result = "%3C"
$result = Macros::TextProcessing::UrlEncode("<");
return $result;
 
// result = "%3C"
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

TextProcessing Class
TextProcessing Members
UrlDecode Method