C# Class Thrinax.Helper.NChardetHelper

Afficher le fichier Open project: ziyunhx/thrinax

Méthodes publiques

Méthode 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 méthode

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.
Résultat string

RecogEncoding() public static méthode

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.
Résultat System.Text.Encoding