Unicode
suggest changeEncode Unicode text (str) to bytes. You must choose an encoding.
>>> "🐍".encode("utf-8")
b'\xf0\x9f\x90\x8d'
Decode bytes to Unicode text. You must know which encoding produced the bytes.
>>> b"\xf0\x9f\x90\x8d".decode("utf-8")
'🐍'
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents