Share via


WriteUrlEncode Method

The WriteUrlEncode method of the SPEncode class encodes the specified string, converting special characters to quoted UTF-8 format, and writes the string to the HTTP output content stream.

Parameters

response   The System.HttpResponse object for the current HTTP request.

str   The string to encode.

Remarks

The WriteUrlEncode method converts "http://msdn.microsoft.com" to "http%3A%2F%2Fmsdn%2Emicrosoft%2Ecom".

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security