Convert Utility¶
The convert utility functions can convert unicode strings into byte sequences and vice versa. Independent of the Python version used, they ensure a string (as seen by the convert utilities) is always a unicode string, and a byte sequence (as seen by the convert utilities) is always a sequence of bytes, and not a multi-byte sequence.