C# Encoding UTF8
Description
Encoding UTF8
Gets an encoding for the UTF-8 format.
Syntax
Encoding.UTF8
has the following syntax.
public static Encoding UTF8 { get; }
Example
using System;/*from w w w .jav a2 s . com*/
using System.Text;
public class Example
{
public static void Main()
{
Encoding enc = Encoding.UTF8;
Console.Write("{0,-30} :", enc.ToString());
}
}
The code above generates the following result.