charset

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Chardet         = "auto"
	UTF8CharSet     = "UTF-8"
	GBKCharSet      = "GBK"
	GB2312CharSet   = "GB2312"
	BIG5CharSet     = "BIG5"
	ISO88591CharSet = "ISO-8859-1"
	GB18030CharSet  = "GB18030"
	// Latin1CharSet ISO-8859-1 的别名,有些环境下写作 Latin-1
	Latin1CharSet = "latin1"
	UTF16CharSet  = "UTF16"
	AsciiCharSet  = "ascii"
	Cp850CharSet  = "cp850"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodingCharset

type EncodingCharset struct {
	// contains filtered or unexported fields
}

func (*EncodingCharset) CharsetDecode

func (e *EncodingCharset) CharsetDecode(input []byte) (string, error)

func (*EncodingCharset) CharsetEncode

func (e *EncodingCharset) CharsetEncode(input string) ([]byte, error)

func (*EncodingCharset) GetCharset

func (e *EncodingCharset) GetCharset() string

func (*EncodingCharset) SetCharset

func (e *EncodingCharset) SetCharset(c string)

Jump to

Keyboard shortcuts

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