C# UTF8Encoding IsMailNewsSave
Description
UTF8Encoding IsMailNewsSave
When overridden in a derived
class, gets a value indicating whether the current encoding can be used by
mail and news clients for saving content.
Syntax
UTF8Encoding.IsMailNewsSave
has the following syntax.
public virtual bool IsMailNewsSave { get; }
Example
using System;/* ww w . jav a2 s.c om*/
using System.Text;
public class SamplesEncoding {
public static void Main() {
foreach( EncodingInfo ei in Encoding.GetEncodings() ) {
Encoding e = ei.GetEncoding();
Console.Write( "{0,-6} {1,-25} ", ei.CodePage, ei.Name );
Console.Write( "{0,-8} {1,-8} ", e.IsBrowserDisplay, e.IsBrowserSave );
Console.Write( "{0,-8} {1,-8} ", e.IsMailNewsSave, e.IsMailNewsSave );
Console.WriteLine( "{0,-8} {1,-8} ", e.IsSingleByte, e.IsReadOnly );
}
}
}
The code above generates the following result.