charset

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Charsets = []Charset{
	UTF8,
	ShiftJis,
}

Functions

This section is empty.

Types

type Charset

type Charset = string
const (
	ShiftJis Charset = "shift-jis"
	UTF8     Charset = "utf-8"
)

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder() *Decoder

NewDecoder returns a Decoder

This Map is handling Character set translation utility.

func (*Decoder) Decode

func (c *Decoder) Decode(addr string, b []byte) (string, error)

Decode binary to string.

func (*Decoder) Register

func (c *Decoder) Register(addr, charset string) error

Register the desired character code conversion process according to the sender's address.

Jump to

Keyboard shortcuts

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