encode

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CVtolocal *iconv.Converter
	CVtoutf8  *iconv.Converter
)

Functions

func GbkToUtf8

func GbkToUtf8(str []byte) (b []byte, err error)

GbkToUtf8 转换GBK编码到UTF-8编码

func InitConverter

func InitConverter(local string) bool

func LocalToUtf8

func LocalToUtf8(str string) (b string, err error)

func Utf8ToGbk

func Utf8ToGbk(str []byte) (b []byte, err error)

Utf8ToGbk 转换UTF-8编码到GBK编码

func Utf8ToLocal

func Utf8ToLocal(str string) (b string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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