This documentation is archived and is not being maintained.

HttpEncoder::Default Property

Gets a reference to the default encoder for ASP.NET.

Namespace:  System.Web.Util
Assembly:  System.Web (in System.Web.dll)

public:
static property HttpEncoder^ Default {
	HttpEncoder^ get ();
}

Property Value

Type: System.Web.Util::HttpEncoder
A reference to the default encoder.

A common encoding issue is that the default ASP.NET UrlEncode behavior converts spaces into the "+" character. Historically, the "+" character has been an Internet convention for encoding space characters in a URL into a more human-readable manner. However, according to standards, the space character is supposed to be encoded as "%20" and instead of as the "+" character. ASP.NET lets you implement a more standards compliant encoding algorithm.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: