System.Text.Encoding.WebName Property

When overridden in a derived class, gets the name registered with the Internet Assigned Numbers Authority (IANA) for the current encoding.

Syntax

public virtual string WebName { get; }

Value

The name of the encoding in web form.

Remarks

The Encoding.WebName property is the same as the EncodingInfo.Name property.

Note that Encoding.WebName returns an IANA-registered name for the encoding. When its value is the name of a standard, the actual implementation of the encoding may not conform in full to that standard. The Encoding.HeaderName property defines a different encoding that might work better for e-mail headers. However, most applications should use Encoding.WebName instead.

For more information on the IANA, go to tp://www.iana.org/.

The Encoding.WebName is the same as the EncodingInfo.Name returned by Encoding.GetEncodings. Some of the web names are duplicates; see the remarks for Encoding.GetEncodings for more information.

Requirements

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0