encoding

package
v0.9.12 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByName

func ByName(charset string) encoding.Encoding

func Decode

func Decode(in []byte, charset string) ([]byte, error)

func DecodeFileName

func DecodeFileName(headerName string, ZipFilenameEncoding string) string

func GbkToUtf8

func GbkToUtf8(unknowString string) (string, error)

func GetEncoding

func GetEncoding(charset string) (encoding.Encoding, bool)

func GuessText

func GuessText(unknowString string) (string, error)

func ShiftjisToUtf8

func ShiftjisToUtf8(unknowString string) (string, error)

func ToGBK

func ToGBK(str string) (string, error)

ToGBK Convert a string encoding from UTF-8 to ShiftJIS

func ToShiftJIS

func ToShiftJIS(str string) (string, error)

ToShiftJIS Convert a string encoding from UTF-8 to ShiftJIS

Types

This section is empty.

Jump to

Keyboard shortcuts

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