UTF8Encoding Constructor ()
Initializes a new instance of the UTF8Encoding class.
Assembly: mscorlib (in mscorlib.dll)
This constructor creates an instance that does not provide a Unicode byte order mark and does not throw an exception when an invalid encoding is detected.
For security reasons, we recommend that you enable error detection by calling a constructor with a throwOnInvalidBytes parameter and setting its value to true.
The following example creates a new UTF8Encoding instance and displays its name.
Available since 8
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1