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.AsciiAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3618.0 (4.8.3618.0)
Syntaxpublic static Encoding? DetectBom(
byte[] bytes
)
Parameters
- bytes Byte
- The byte array to check for a BOM.
Return Value
EncodingThe detected encoding if a BOM is found; otherwise, null.
See Also