Python encodings Module
Example
Import encodings and confirm it is available:
import encodings
print("encodings")
Try it Yourself »
Definition and Usage
The encodings package provides implementations of text encodings used by Python's codec system.
You typically do not import specific encodings directly; instead, use the codecs module or built-in str.encode()/bytes.decode() with an encoding name.
Members
Member | Description |
---|---|
aliases | Mapping of codec name aliases used by the codec registry. |
(various encoding modules) | Concrete encoding implementations such as utf_8, latin_1, cp1252, etc. |