Documentation
¶
Index ¶
- Constants
- func Decode(content string, e string) (result []byte, err error)
- func DecodeBytes(buff []byte, e string) (result []byte, err error)
- func Encode(content string, e string) (result []byte, err error)
- func EncodeBytes(buff []byte, e string) (result []byte, err error)
- func GetDecodeReader(buff []byte, charset string) io.Reader
- func GetEncodeReader(buff []byte, charset string) io.Reader
Constants ¶
View Source
const GB2312 = "gb2312"
GB2312 gb2312
View Source
const GBK = "gbk"
GBK gbk
View Source
const UTF8 = "utf-8"
UTF8 utf-8
Variables ¶
This section is empty.
Functions ¶
func DecodeBytes ¶
DecodeBytes 根据编码进行解码操作
func EncodeBytes ¶
EncodeBytes 将UTF8字符串编码为gbk或gb2312格式
func GetDecodeReader ¶
GetDecodeReader 获取 charset不区分大小写
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.