Home
/
Python 3.11
/
Built-in Types
/
decode
Python 3.0
Python 3.9
Python 3.11
Functions
ID
EN
…
Built-in Types
decode
Python 3.11
Return the bytes decoded to a str.
Syntax
PYTHON
Copy
bytes.decode(encoding='utf-8', errors='strict')
See Also
str
Standard Encodings
UnicodeError
codecs.register_error()
Error Handlers
Python Development Mode
debug build
str