gcharset

package
v0.0.0-...-3631402 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

字符集转换方法. 使用mahonia实现的字符集转换方法,支持的字符集包括常见的utf8/UTF-16/UTF-16LE/macintosh/big5/gbk/gb18030,支持的全量字符集可以参考mahonia包

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)

2个字符集之间的转换

func ToUTF8

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

指定字符集转UTF8

func UTF8To

func UTF8To(charset string, src string) (dst string, err error)

UTF8转指定字符集

Types

This section is empty.

Jump to

Keyboard shortcuts

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