Encodes a string so that it is safe to include in a URL. The string is expected to have a character encoding of UTF-8.

Namespace:  Endeca.Web.Url.Seo
Assembly:  Endeca.Web.Url.Seo (in Endeca.Web.Url.Seo.dll) Version: 2.1.1.0 (2.1.1.0)

Syntax

C#
public string EncodeString(
	string stringToEncode
)
Visual Basic (Declaration)
Public Function EncodeString ( _
	stringToEncode As String _
) As String
Visual C++
public:
virtual String^ EncodeString(
	String^ stringToEncode
) sealed

Parameters

stringToEncode
Type: System..::.String
The string to encode.

Return Value

URL encoded URL string.

Implements

IUrlEncoder..::.EncodeString(String)

Remarks

By default, this just calls UrlEncode(String), where the default character encoding is UTF-8.

See Also