string.encode()

string.encode()

string.encode() method

.encode(encoding="utf-8")

Return an encoded version of the string as a bytes object.

Related concepts

string.encode()

string.encode() — Structure map

Clickable & Draggable!

string.encode() — Related pages: