C# ASCIIEncoding IsBrowserDisplay
Description
ASCIIEncoding IsBrowserDisplay
When overridden in
a derived class, gets a value indicating whether the current encoding can
be used by browser clients for displaying content.
Syntax
ASCIIEncoding.IsBrowserDisplay
has the following syntax.
public virtual bool IsBrowserDisplay { get; }
Example
/*www.j a v a 2 s.c o m*/
using System;
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.IsBrowserDisplay);
}
}
}
The code above generates the following result.