Utilities to encode text, and to safely emit text from running
applications without crashing with the infamous UnicodeDecodeError
exception.
-
kombu.utils.encoding.bytes_to_str(s)
-
kombu.utils.encoding.default_encode(obj)
-
kombu.utils.encoding.default_encoding()
-
kombu.utils.encoding.ensure_bytes(s)
-
kombu.utils.encoding.from_utf8(s, *args, **kwargs)
-
kombu.utils.encoding.safe_repr(o, errors='replace')
-
kombu.utils.encoding.safe_str(s, errors='replace')
-
kombu.utils.encoding.str_to_bytes(s)