Class TextEncodingHelper
Class used to assist detection of unknown encodings.
Inherited Members
Namespace: SuperOffice.Util
Assembly: SoCore.dll
Syntax
public static class TextEncodingHelper
Methods
GetEncodingFromBytes(byte[])
Attempts to detect the actual text-encoding of the provided byte-stream.
Declaration
public static Encoding GetEncodingFromBytes(byte[] bytes)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | bytes | Bytes to use for encoding-detection. |
Returns
| Type | Description |
|---|---|
| Encoding | UTF8 as fallback encoding if encoding cannot be determined from the provided byte-array. |