C# UTF8Encoding UTF8Encoding()
Description
UTF8Encoding UTF8Encoding()
Initializes a new instance
of the UTF8Encoding class.
Syntax
UTF8Encoding.UTF8Encoding()
has the following syntax.
public UTF8Encoding()
Example
/*w w w . j a v a2s. c o m*/
using System;
using System.Text;
class UTF8EncodingExample {
public static void Main() {
UTF8Encoding utf8 = new UTF8Encoding();
String encodingName = utf8.EncodingName;
Console.WriteLine("Encoding name: " + encodingName);
}
}
The code above generates the following result.