charsetKit

package
v2.8.116 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package charsetKit

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

View Source
var Convert func(dstCharset string, srcCharset string, src string) (dst string, err error) = gcharset.Convert

Convert 转换字符串的编码(字符集的编码)

支持的字符集(charset): UTF-8、GBK、Big5、ISO-* 等,更多详见: https://goframe.org/pages/viewpage.action?pageId=1114178.

View Source
var IsSupported func(charset string) bool = gcharset.Supported

IsSupported 是否支持 指定字符集 ?

View Source
var ToUTF8 func(srcCharset string, src string) (dst string, err error) = gcharset.ToUTF8
View Source
var UTF8To func(dstCharset string, src string) (dst string, err error) = gcharset.UTF8To

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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