Home
/
Python 3.11
/
Built-in Types
/
encode
Python 3.0
Python 3.9
Python 3.11
Fungsi
ID
EN
…
Built-in Types
encode
Python 3.11
🇮🇩 Bahasa Indonesia
Kembalikan string yang dikodekan ke byte.
Syntax
PYTHON
Copy
str.encode(encoding='utf-8', errors='strict')
See Also
bytes
Standard Encodings
UnicodeError
codecs.register_error()
Error Handlers
Python Development Mode
debug build
Python Development Mode