Class Charset.Encoder

Inheritance graph
Charset.Decoder Charset.Encoder
Description

Virtual base class for charset encoders.

Encoders take a stream of Unicode code points and converts them to a string of 8-bit bytes.

See also

encoder(), Decoder


Inherit Decoder

inherit Decoder : Decoder

Description

An encoder only differs from a decoder in that it has an extra function. And in that feed() accepts wide strings and drain() returns only 8-bit strings.


Variable charset

string Charset.Encoder.charset

Description

Canonical name of the charset - giving this name to encoder returns an instance of the same class as this one.

Note

This is not necessarily the same name that was actually given to encoder to produce this object.