charset

package
v1.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToISO8859_1

func ToISO8859_1(utf8String string) []byte

ToISO8859_1 encodes the provided utf8String to the ISO8859_1 encoding. The result is returned as byte slice. Any error from the encoder will cause a panic.

This function hasn't change its signature as it is used in almost any package. To address the issues with panicing errors this package will most likely get a new encoding function which return possible encoding errors.

func ToUTF8

func ToUTF8(iso8859_1Buf []byte) string

ToUTF8 decodes the provided buffer from the ISO8859_1 encoding to UTF8. The result is returned as string. Any error from the decoder will cause a panic.

This function hasn't change its signature as it is used in almost any package. To address the issues with panicing errors this package will most likely get a new decoding function which return possible decoding errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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