.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

EncodingDetector.Detect Method

Name Parameters Description
Detect(Byte[]) buffer Detect character encoding of bytes in the specified range of an array.
Detect(Byte[], Int32, Int32) buffer, from, length Detect character encoding of bytes in the specified range of an array.
Detect(Stream) stream Detect character encoding of bytes in the specified stream.
Detect(Stream, Int32) stream, maxByteCount Detect character encoding of bytes in the specified stream.
Detect(Stream, Int32, Boolean) stream, maxByteCount, keepPosition Detect character encoding of bytes in the specified stream.