codecs.sbencs

← codecs

Defines WHATWG-specified single-byte encodings.

Classes

_class Ibm866IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for OEM-866 (Russian Cyrillic).

Note: OEM-866 competed with OEM-855 for Cyrillic; OEM-866 preserved all box drawing characters (rather then only a subset) and was more popular for Russian, but did not provide coverage for all of the different South Slavic Cyrillic orthographies, unlike OEM-855. Their layouts for Cyrillic are entirely different.

_property Ibm866IncrementalDecoder.decoding_map

_class Ibm866IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for OEM-866 (Russian Cyrillic).

Note: OEM-866 competed with OEM-855 for Cyrillic; OEM-866 preserved all box drawing characters (rather then only a subset) and was more popular for Russian, but did not provide coverage for all of the different South Slavic Cyrillic orthographies, unlike OEM-855. Their layouts for Cyrillic are entirely different.

_property Ibm866IncrementalEncoder.encoding_map

_class Iso885910IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for ISO/IEC 8859-10 (Nordic)

_property Iso885910IncrementalDecoder.decoding_map

_class Iso885910IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for ISO/IEC 8859-10 (Nordic)

_property Iso885910IncrementalEncoder.encoding_map

_class Iso885913IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for ISO/IEC 8859-13 (Baltic Rim)

_property Iso885913IncrementalDecoder.decoding_map

_class Iso885913IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for ISO/IEC 8859-13 (Baltic Rim)

_property Iso885913IncrementalEncoder.encoding_map

_class Iso885914IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for ISO/IEC 8859-14 (Celtic)

_property Iso885914IncrementalDecoder.decoding_map

_class Iso885914IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for ISO/IEC 8859-14 (Celtic)

_property Iso885914IncrementalEncoder.encoding_map

_class Iso885915IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for ISO/IEC 8859-15 (New Western European)

_property Iso885915IncrementalDecoder.decoding_map

_class Iso885915IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for ISO/IEC 8859-15 (New Western European)

_property Iso885915IncrementalEncoder.encoding_map

_class Iso885916IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for ISO/IEC 8859-16 (South-Eastern European; Romanian SR 14111)

_property Iso885916IncrementalDecoder.decoding_map

_class Iso885916IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for ISO/IEC 8859-16 (South-Eastern European; Romanian SR 14111)

_property Iso885916IncrementalEncoder.encoding_map

_class Iso88592IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for ISO/IEC 8859-2 (Central European)

_property Iso88592IncrementalDecoder.decoding_map

_class Iso88592IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for ISO/IEC 8859-2 (Central European)

_property Iso88592IncrementalEncoder.encoding_map

_class Iso88593IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for ISO/IEC 8859-3 (Maltese and Esperanto)

_property Iso88593IncrementalDecoder.decoding_map

_class Iso88593IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for ISO/IEC 8859-3 (Maltese and Esperanto)

_property Iso88593IncrementalEncoder.encoding_map

_class Iso88594IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for ISO/IEC 8859-4 (North European)

_property Iso88594IncrementalDecoder.decoding_map

_class Iso88594IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for ISO/IEC 8859-4 (North European)

_property Iso88594IncrementalEncoder.encoding_map

_class Iso88595IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for ISO/IEC 8859-5 (Cyrillic)

_property Iso88595IncrementalDecoder.decoding_map

_class Iso88595IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for ISO/IEC 8859-5 (Cyrillic)

_property Iso88595IncrementalEncoder.encoding_map

_class Iso88596IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for ISO/IEC 8859-6 (Arabic ASMO 708)

_property Iso88596IncrementalDecoder.decoding_map

_class Iso88596IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for ISO/IEC 8859-6 (Arabic ASMO 708)

_property Iso88596IncrementalEncoder.encoding_map

_class Iso88597IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for ISO/IEC 8859-7 (Greek ELOT 928)

_property Iso88597IncrementalDecoder.decoding_map

_class Iso88597IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for ISO/IEC 8859-7 (Greek ELOT 928)

_property Iso88597IncrementalEncoder.encoding_map

_class Iso88598IIncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for ISO/IEC 8859-8 (Hebrew)

_property Iso88598IIncrementalDecoder.decoding_map

_class Iso88598IIncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for ISO/IEC 8859-8 (Hebrew)

_property Iso88598IIncrementalEncoder.encoding_map

_class Iso88598IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for ISO/IEC 8859-8 (Hebrew)

_property Iso88598IncrementalDecoder.decoding_map

_class Iso88598IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for ISO/IEC 8859-8 (Hebrew)

_property Iso88598IncrementalEncoder.encoding_map

_class Koi8RIncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for the KOI8-R (KOI-8 Cyrillic for Russian) encoding.

_property Koi8RIncrementalDecoder.decoding_map

_class Koi8RIncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for the KOI8-R (KOI-8 Cyrillic for Russian) encoding.

_property Koi8RIncrementalEncoder.encoding_map

_class Koi8RuIncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for the KOI8-RU (KOI-8 Cyrillic for Belarusian, Ukrainian and Ruthenian) encoding.

_property Koi8RuIncrementalDecoder.decoding_map

_class Koi8RuIncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for the KOI8-RU (KOI-8 Cyrillic for Belarusian, Ukrainian and Ruthenian) encoding.

_property Koi8RuIncrementalEncoder.encoding_map

_class MacintoshIncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for the Macintosh Roman encoding.

_property MacintoshIncrementalDecoder.decoding_map

_class MacintoshIncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for the Macintosh Roman encoding.

_property MacintoshIncrementalEncoder.encoding_map

_class Windows1250IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for Windows-1250 (Central Europe)

_property Windows1250IncrementalDecoder.decoding_map

_class Windows1250IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for Windows-1250 (Central Europe)

_property Windows1250IncrementalEncoder.encoding_map

_class Windows1251IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for Windows-1251 (Cyrillic)

_property Windows1251IncrementalDecoder.decoding_map

_class Windows1251IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for Windows-1251 (Cyrillic)

_property Windows1251IncrementalEncoder.encoding_map

_class Windows1252IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for Windows-1252 (Western Europe), ISO-8859-1 modification/extension

_property Windows1252IncrementalDecoder.decoding_map

_class Windows1252IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for Windows-1252 (Western Europe), ISO-8859-1 modification/extension

_property Windows1252IncrementalEncoder.encoding_map

_class Windows1253IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for Windows-1253 (Greek)

_property Windows1253IncrementalDecoder.decoding_map

_class Windows1253IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for Windows-1253 (Greek)

_property Windows1253IncrementalEncoder.encoding_map

_class Windows1254IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for Windows-1254 (Turkish), ISO-8859-9 modification/extension

_property Windows1254IncrementalDecoder.decoding_map

_class Windows1254IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for Windows-1254 (Turkish), ISO-8859-9 modification/extension

_property Windows1254IncrementalEncoder.encoding_map

_class Windows1255IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for Windows-1255 (Logical order Hebrew with vowel points)

_property Windows1255IncrementalDecoder.decoding_map

_class Windows1255IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for Windows-1255 (Logical order Hebrew with vowel points)

_property Windows1255IncrementalEncoder.encoding_map

_class Windows1256IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for Windows-1256 (Arabic)

_property Windows1256IncrementalDecoder.decoding_map

_class Windows1256IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for Windows-1256 (Arabic)

_property Windows1256IncrementalEncoder.encoding_map

_class Windows1257IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for Windows-1257 (Baltic Rim)

_property Windows1257IncrementalDecoder.decoding_map

_class Windows1257IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for Windows-1257 (Baltic Rim)

_property Windows1257IncrementalEncoder.encoding_map

_class Windows1258IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for Windows-1258 (Vietnam), basic implementation

Note that Windows-1258 includes a mixture of composed forms and combining characters, and that some grapheme clusters must be represented with a sequence of a composed form and a combining character, even though a fully composed form exists in Unicode taken from other encodings such as VISCII, since a fully composed form is not included, and a combining form is included for only one of the diacritics.

The encoder is a simple mapping which will accept text in the form generated by the decoder but, due to the above, some grapheme clusters will not be accepted in either NFC or NFD normalised form. The decoder does not convert its output to any normalised form. This follows both Python and WHATWG behaviour. Conversion of text between encodable form and either normalised form may need to be handled in a separate step by any code using this codec.

_property Windows1258IncrementalDecoder.decoding_map

_class Windows1258IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for Windows-1258 (Vietnam), basic implementation

Note that Windows-1258 includes a mixture of composed forms and combining characters, and that some grapheme clusters must be represented with a sequence of a composed form and a combining character, even though a fully composed form exists in Unicode taken from other encodings such as VISCII, since a fully composed form is not included, and a combining form is included for only one of the diacritics.

The encoder is a simple mapping which will accept text in the form generated by the decoder but, due to the above, some grapheme clusters will not be accepted in either NFC or NFD normalised form. The decoder does not convert its output to any normalised form. This follows both Python and WHATWG behaviour. Conversion of text between encodable form and either normalised form may need to be handled in a separate step by any code using this codec.

_property Windows1258IncrementalEncoder.encoding_map

_class Windows874IncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for Windows-874 (Thai), TIS-620 / ISO-8859-11 modification/extension

_property Windows874IncrementalDecoder.decoding_map

_class Windows874IncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for Windows-874 (Thai), TIS-620 / ISO-8859-11 modification/extension

_property Windows874IncrementalEncoder.encoding_map

_class XMacCyrillicIncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for the Macintosh Cyrillic encoding.

_property XMacCyrillicIncrementalDecoder.decoding_map

_class XMacCyrillicIncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for the Macintosh Cyrillic encoding.

_property XMacCyrillicIncrementalEncoder.encoding_map

_class XUserDefinedIncrementalDecoder(AsciiIncrementalDecoder)

IncrementalDecoder implementation for the user-defined extended ASCII encoding.

This maps ASCII bytes as ASCII characters, and non-ASCII bytes to the private use range U+F780–F7FF, such that the low 8 bits always match the original byte.

This is sometimes useful for round-tripping arbitrary sensu stricto extended ASCII data without caring about the non-ASCII part. Note however, that sensu lato extended ASCII may for example use ASCII bytes as trail bytes in a multi-byte code.

_property XUserDefinedIncrementalDecoder.decoding_map

_class XUserDefinedIncrementalEncoder(AsciiIncrementalEncoder)

IncrementalEncoder implementation for the user-defined extended ASCII encoding.

This maps ASCII bytes as ASCII characters, and non-ASCII bytes to the private use range U+F780–F7FF, such that the low 8 bits always match the original byte.

This is sometimes useful for round-tripping arbitrary sensu stricto extended ASCII data without caring about the non-ASCII part. Note however, that sensu lato extended ASCII may for example use ASCII bytes as trail bytes in a multi-byte code.

_property XUserDefinedIncrementalEncoder.encoding_map