charsetKit

package
v2.2.17 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 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

This section is empty.

Functions

func Convert

func Convert(dstCharset string, srcCharset string, src string) (dst string, err error)

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

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

func IsSupported

func IsSupported(charset string) bool

IsSupported 是否支持 指定字符集 ?

func ToUTF8

func ToUTF8(srcCharset string, src string) (dst string, err error)

func UTF8To

func UTF8To(dstCharset string, src string) (dst 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