Click or drag to resize

AsciiDocumentAnalysisDetectBom Method

Detects the encoding of a byte array by checking for a Byte Order Mark (BOM). If a BOM is found, the corresponding encoding is returned. If no BOM is found, null is returned.

Namespace: Altaxo.Serialization.Ascii
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3618.0 (4.8.3618.0)
Syntax
C#
public static Encoding? DetectBom(
	byte[] bytes
)

Parameters

bytes  Byte
The byte array to check for a BOM.

Return Value

Encoding
The detected encoding if a BOM is found; otherwise, null.
See Also