C# Класс Thrinax.Helper.NChardetHelper

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

RecogCharset() публичный статический Метод

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.
Результат string

RecogEncoding() публичный статический Метод

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.
Результат System.Text.Encoding