AngleSharp by Florian Rappl

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

 TextEncoding

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 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 Windows1252

Gets the Windows-1252 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 string PunycodeEncode(string unicode)

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.

public static Encoding Suggest(string local)

Suggests an Encoding for the given local.