Show / Hide Table of Contents

Class TextEncodingHelper

Class used to assist detection of unknown encodings.

Inheritance
object
TextEncodingHelper
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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.

© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top