Documentation
¶
Overview ¶
The charset package provides encoding/decoding functions for single-byte character sets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ASCII = New(table_ASCII)
ASCII charset
View Source
var CP1251 = New(table_CP1251)
CP1251 charset, see http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1251.TXT
View Source
var CP1252 = New(table_CP1252)
CP1252 charset, see http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1252.TXT
View Source
var CP866 = New(table_CP866)
CP866 charset, see http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP866.TXT
View Source
var KOI8_R = New(table_KOI8_R)
KOI8-R charset, see http://www.unicode.org/Public/MAPPINGS/VENDORS/MISC/KOI8-R.TXT
Functions ¶
This section is empty.
Types ¶
type Charset ¶
type Charset struct { // Character ('?' by default) for replacing invalid or // undefined in this charset UTF-8 runes. ErrorChar byte // contains filtered or unexported fields }
Charset is an object represented a single-byte character set.
func (*Charset) Decoder ¶
Decoder returns an io.Reader that reads charset-encoded data from the underlying io.Reader and converts them to UTF-8.
Click to show internal directories.
Click to hide internal directories.