C# UnicodeEncoding IsMailNewsSave

Description

UnicodeEncoding 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

UnicodeEncoding.IsMailNewsSave has the following syntax.


public virtual bool IsMailNewsSave { get; }

Example


using System;/* w w  w  . ja va2  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.WriteLine(e.IsMailNewsSave );
      }

   }

}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Text »




ASCIIEncoding
Encoding
EncodingInfo
StringBuilder
UnicodeEncoding
UTF8Encoding