TextEncodingConverterGetCodePage Method

Overload List

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.)

See Also