C# UnicodeEncoding HeaderName
Description
UnicodeEncoding HeaderName
When overridden in a derived
class, gets a name for the current encoding that can be used with mail agent
header tags.
Syntax
UnicodeEncoding.HeaderName
has the following syntax.
public virtual string HeaderName { get; }
Example
using System;/*w w w . j a v a2 s. co m*/
using System.Text;
public class SamplesEncoding {
public static void Main() {
foreach( EncodingInfo ei in Encoding.GetEncodings() ) {
Encoding e = ei.GetEncoding();
Console.Write( "{0,-18} ", e.HeaderName );
}
}
}
The code above generates the following result.