C# Encoding IsBrowserDisplay
Description
Encoding 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
Encoding.IsBrowserDisplay
has the following syntax.
public virtual bool IsBrowserDisplay { get; }
Example
using System;/* w w w.ja v a 2 s . com*/
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.