Unicode

suggest change

Encode 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")
'🐍'

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents