Categorygithub.com/gdamore/encoding
modulepackage
1.0.1
Repository: https://github.com/gdamore/encoding.git
Documentation: pkg.go.dev

# README

encoding

Linux Windows Apache License Coverage GoDoc

Package encoding provides a number of encodings that are missing from the standard Go encoding package.

We hope that we can contribute these to the standard Go library someday. It turns out that some of these are useful for dealing with I/O streams coming from non-UTF friendly sources.

The UTF8 Encoder is also useful for situations where valid UTF-8 might be carried in streams that contain non-valid UTF; in particular I use it for helping me cope with terminals that embed escape sequences in otherwise valid UTF-8.

# Constants

ASCIISub is the ASCII substitution character.
RuneError is an alias for the UTF-8 replacement rune, '\uFFFD'.
RuneSelf is the rune below which UTF-8 and the Unicode values are identical.

# Variables

ASCII represents the 7-bit US-ASCII scheme.
EBCDIC represents the 8-bit EBCDIC scheme, found in some mainframe environments.
ISO8859_1 represents the 8-bit ISO8859-1 scheme.
ISO8859_9 represents the 8-bit ISO8859-9 scheme.
UTF8 is an encoding for UTF-8.

# Structs

Charmap is a structure for setting up encodings for 8-bit character sets, for transforming between UTF8 and that other character set.