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)
Click to show internal directories.
Click to hide internal directories.