encode

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: MIT Imports: 5 Imported by: 2 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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