AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="1.0.0" />

 TextEncoding

public static class TextEncoding
Various HTML encoding helpers.
public static readonly Encoding Big5

Gets the Big5 encoding.

public static readonly Encoding Gb18030

Gets the chinese government standard encoding.

public static readonly Encoding Korean

Gets the ks_c_5601-1987 encoding.

public static readonly Encoding Latin13

Gets the iso-8859-13 encoding.

public static readonly Encoding Latin2

Gets the iso-8859-2 encoding.

public static readonly Encoding Latin3

Gets the iso-8859-53 encoding.

public static readonly Encoding Latin4

Gets the iso-8859-4 encoding.

public static readonly Encoding Latin5

Gets the iso-8859-5 encoding.

public static readonly Encoding UsAscii

Gets the US-ASCII encoding.

public static readonly Encoding Utf16Be

Gets the UTF-16 (Big Endian) encoding.

public static readonly Encoding Utf16Le

Gets the UTF-16 (Little Endian) encoding.

public static readonly Encoding Utf32Be

Gets the UTF-32 (Little Endian) encoding.

public static readonly Encoding Utf32Le

Gets the UTF-32 (Little Endian) encoding.

public static readonly Encoding Utf8

Gets the UTF-8 encoding.

public static readonly Encoding Windows1250

Gets the Windows-1250 encoding.

public static readonly Encoding Windows1251

Gets the Windows-1251 encoding.

public static readonly Encoding Windows1252

Gets the Windows-1252 encoding.

public static readonly Encoding Windows1253

Gets the Windows-1253 encoding.

public static readonly Encoding Windows1254

Gets the Windows-1254 encoding.

public static readonly Encoding Windows1255

Gets the Windows-1255 encoding.

public static readonly Encoding Windows1256

Gets the Windows-1256 encoding.

public static readonly Encoding Windows1257

Gets the Windows-1257 encoding.

public static readonly Encoding Windows1258

Gets the Windows-1258 encoding.

public static readonly Encoding Windows874

Gets the Windows-874 encoding.

public static bool IsSupported(string charset)

Detects if a valid encoding has been found in the given charset string.

public static bool IsUnicode(this Encoding encoding)

Checks if the provided encoding is any UTF-16 encoding.

public static Encoding Parse(string content)

Tries to extract the encoding from the given http-equiv content string.

public static Encoding Resolve(string charset)

Resolves an Encoding instance given by the charset string. If the desired encoding is not found (or supported), then UTF-8 will be returned.