Documentation ¶
Index ¶
- Constants
- func Convert(dstCharset Charset, srcCharset Charset, src string) (dst string, err error)
- func GbkToUtf8(s []byte) ([]byte, error)
- func NewCommand() *cobra.Command
- func ToUTF8(srcCharset Charset, src string) (dst string, err error)
- func UTF8To(dstCharset Charset, src string) (dst string, err error)
- type Charset
Constants ¶
View Source
const ( GBK Charset = "GBK" GB18030 = "GB18030" GB2312 = "GB2312" Big5 = "Big5" )
中文
View Source
const ( EUCJP Charset = "EUCJP" ISO2022JP = "ISO2022JP" ShiftJIS = "ShiftJIS" )
日文
View Source
const ( UTF_8 Charset = "UTF-8" UTF_16 = "UTF-16" UTF_16BE = "UTF-16BE" UTF_16LE = "UTF-16LE" )
Unicode
View Source
const ( Macintosh Charset = "macintosh" IBM = "IBM*" Windows = "Windows*" ISO = "ISO-*" )
其他编码
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.