experiment

package
v0.0.0-...-32c423f Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

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 Convert

func Convert(dstCharset Charset, srcCharset Charset, src string) (dst string, err error)

func GbkToUtf8

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

func NewCommand

func NewCommand() *cobra.Command

func ToUTF8

func ToUTF8(srcCharset Charset, src string) (dst string, err error)

func UTF8To

func UTF8To(dstCharset Charset, src string) (dst string, err error)

Types

type Charset

type Charset string
const (
	EUCKR Charset = "EUCKR"
)

韩文

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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