charset

package
v0.49.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 7 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 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"
)

韩文

Jump to

Keyboard shortcuts

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