encodingKit

package
v1.30.16 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package encodingKit

UTF-8 是golang的原生编码方式.

参考: Go-文本编码的转换处理 使用golang.org/x/text库

https://blog.csdn.net/gaoluhua/article/details/109128154

go语言中的UTF-8与GBK编码转换

https://wenku.baidu.com/view/d6a6e1c2561810a6f524ccbff121dd36a32dc480.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GbkToUtf8

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

GbkToUtf8 GBK => UTF-8

func GbkToUtf8String

func GbkToUtf8String(str string) (string, int, error)

GbkToUtf8String GBK => UTF-8

func Utf8ToGbk

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

Utf8ToGbk UTF-8 => GBK

func Utf8ToGbkString

func Utf8ToGbkString(str string) (string, int, error)

Utf8ToGbkString 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