def build_content_type(format, encoding='utf-8'):
    if 'charset' in format:
        return format
    
    return "%s; charset=%s" % (format, encoding)
Appends character encoding to the provided format if not already present.
dataset/ETHPy150Open hzlf/openbroadcast/website/apps/tastypie/utils/mime.py/build_content_type