gcharset

package
v0.0.0-...-04ff805 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectCharset

func DetectCharset(str string, isHtml bool) (string, error)

func DetectCharsetEx

func DetectCharsetEx(in []byte) (string, error)

characterize seems great

func DetectNatrualLanguage

func DetectNatrualLanguage(utf8Slice []byte) (lang langdetect.Language, err error)

func GbkToUtf8

func GbkToUtf8(s []byte) ([]byte, error)

func IsChinese

func IsChinese(s string) (bool, error)

func IsValidISO_693_1_Code

func IsValidISO_693_1_Code(code string) bool

func Utf8ToGbk

func Utf8ToGbk(s []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL