Versions in this module Expand all Collapse all v0 v0.0.2 Jan 13, 2023 Changes in this version + func GetEncodingFromCharsetName(name string) (e encoding.Encoding, err error) + func IsValidUTF8(content []byte) bool + func ToUtf8WithCharsetName(content []byte, charsetName string) ([]byte, error) + func ToUtf8WithDecoder(content []byte, d Decoder) ([]byte, error) + func ToUtf8WithEncoding(content []byte, e encoding.Encoding) ([]byte, error) + type Decoder interface + func GetDecoderFromCharsetName(charsetName string) (decoder Decoder, err error) + type Result struct + Charset string + Confidence int + Convertible bool + Decoder transform.Transformer + Language string + func DetectAll(content []byte) (results []*Result, err error) + func DetectAndConvertToUtf8(content []byte) (convertedContent []byte, res *Result, err error) + func DetectEncoding(content []byte) (result *Result, err error)