C# Class Thrinax.Helper.NChardetHelper

Mostrar archivo Open project: ziyunhx/thrinax

Public Methods

Method Description
RecogCharset ( byte bytes, NChardetLanguage language = NChardetLanguage.ALL, int maxLength = 1024 ) : string

Recog the charset from byte array.

RecogEncoding ( byte bytes, NChardetLanguage language = NChardetLanguage.ALL ) : Encoding

Recog the Encoding from byte array.

Method Details

RecogCharset() public static method

Recog the charset from byte array.
public static RecogCharset ( byte bytes, NChardetLanguage language = NChardetLanguage.ALL, int maxLength = 1024 ) : string
bytes byte the byte array.
language NChardetLanguage the language.
maxLength int max length per time. the default is 1024, -1 to without limit.
return string

RecogEncoding() public static method

Recog the Encoding from byte array.
public static RecogEncoding ( byte bytes, NChardetLanguage language = NChardetLanguage.ALL ) : Encoding
bytes byte the byte array.
language NChardetLanguage the language.
return System.Text.Encoding