TextEncodingConverter Class
Encapsulates methods that support creating appropriate instances of the
Encoding class.
Namespace: FolkerKinzel.StringsAssembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
public static class TextEncodingConverter
Public NotInheritable Class TextEncodingConverter
public ref class TextEncodingConverter abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type TextEncodingConverter = class end
- Inheritance
- Object TextEncodingConverter
| GetCodePage(ReadOnlySpanByte, Int32) | Examines a read-only Byte span, that represents the contents
of a text file, to see if it starts with a Byte Order Mark (BOM), and returns an
appropriate code page. (The fallback value is 65001 for UTF-8.) |
| GetCodePage(String, Int32) | Examines a text file, to see if it starts with a Byte Order Mark (BOM), and
returns an appropriate code page. (The fallback value is 65001 for UTF-8.) |
| GetEncoding(Int32, Boolean) | Returns a corresponding Encoding object for the specified
code page number. |
| GetEncoding(String, Boolean) | Returns a corresponding Encoding object for the specified
identifier of a character set. |
| GetEncoding(Int32, EncoderFallback, DecoderFallback, Boolean) | Returns a corresponding Encoding object for a specified code
page number, whose properties EncoderFallback and
DecoderFallback are set to the desired values. |
| GetEncoding(String, EncoderFallback, DecoderFallback, Boolean) | Returns a corresponding Encoding object for the specified
identifier of a character set, whose properties EncoderFallback and DecoderFallback are set to the desired values. |
| TryGetEncoding(Int32, Encoding) | Tries to return a corresponding Encoding object for the specified
code page number. |
| TryGetEncoding(String, Encoding) | Tries to return a corresponding Encoding object for the specified
identifier of a character set. |
| TryGetEncoding(Int32, EncoderFallback, DecoderFallback, Encoding) | Tries to return a corresponding Encoding object for the specified
code page number, whose properties EncoderFallback and DecoderFallback are set to the desired values. |
| TryGetEncoding(String, EncoderFallback, DecoderFallback, Encoding) | Tries to return a corresponding Encoding object for the specified
identifier of a character set, whose properties EncoderFallback and DecoderFallback are set to the desired values. |