This document describes an older version of Celery (2.5). For the latest stable version please go here.

celery.utils.encoding

celery.utils.encoding

Utilities to encode text, and to safely emit text from running applications without crashing with the infamous UnicodeDecodeError exception.

copyright:
  1. 2009 - 2012 by Ask Solem.
license:

BSD, see LICENSE for more details.

celery.utils.encoding.bytes_to_str(s)
celery.utils.encoding.default_encode(obj)
celery.utils.encoding.default_encoding()
celery.utils.encoding.ensure_bytes(s)
celery.utils.encoding.from_utf8(s, *args, **kwargs)
celery.utils.encoding.safe_repr(o, errors='replace')
celery.utils.encoding.safe_str(s, errors='replace')
celery.utils.encoding.str_to_bytes(s)

Previous topic

celery.utils.timeutils

Next topic

celery.utils.compat

This Page