C# ASCIIEncoding WebName
Description
ASCIIEncoding WebName
When overridden in a derived class,
gets the name registered with the Internet Assigned Numbers Authority (IANA)
for the current encoding.
Syntax
ASCIIEncoding.WebName
has the following syntax.
public virtual string WebName { get; }
Example
using System;//from w w w . j a va2 s .c o m
using System.Text;
public class SamplesEncoding
{
public static void Main()
{
foreach (EncodingInfo ei in Encoding.GetEncodings())
{
Encoding e = ei.GetEncoding();
Console.WriteLine(ei.Name);
Console.WriteLine(e.WebName);
}
}
}
The code above generates the following result.