C# Encoding IsBrowserSave

Description

Encoding IsBrowserSave When overridden in a derived class, gets a value indicating whether the current encoding can be used by browser clients for saving content.

Syntax

Encoding.IsBrowserSave has the following syntax.


public virtual bool IsBrowserSave { get; }

Example


using System;// w ww  .  j a  v 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.WriteLine(ei.Name );
         Console.WriteLine(e.IsBrowserSave );
      }
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Text »




ASCIIEncoding
Encoding
EncodingInfo
StringBuilder
UnicodeEncoding
UTF8Encoding