UrlEncode Method
The UrlEncode method of the SPEncode class encodes the specified string, converting special characters to quoted UTF-8 format.
Parameters
str The string to encode.
Return Value
The encoded string.
Remarks
The UrlEncode method converts, for example, "http://msdn.microsoft.com" to "http%3A%2F%2Fmsdn%2Emicrosoft%2Ecom".
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security