encoding

package
v0.0.0-...-6853175 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MulanPSL-2.0 Imports: 5 Imported by: 0

README

encoding

编码工具。

  • GB2312和UTF-8的转换:Utf8ToGb2312Gb2312ToUtf8
  • GBK和UTF-8的转换:Utf8ToGbkGbkToUtf8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gb2312ToUtf8

func Gb2312ToUtf8(text []byte) (result []byte, err error)

GB2312转换为UTF-8

func GbkToUtf8

func GbkToUtf8(text []byte) (result []byte, err error)

GBK转换为UTF-8

func Utf8ToGb2312

func Utf8ToGb2312(text []byte) (result []byte, err error)

UTF-8转换为GB2312

func Utf8ToGbk

func Utf8ToGbk(text []byte) (result []byte, err error)

UTF-8转换为GBK

Types

This section is empty.

Jump to

Keyboard shortcuts

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