@register.filter
def display_url(url):
    if isinstance(url, unicode):
        # Byte sequences will be url encoded so convert
        # to bytes here just to stop auto decoding.
        url = url.encode('utf8')
    bytes = urllib.unquote(url)
    c = chardet.detect(bytes)
    return bytes.decode(c['encoding'], 'replace')
generate resdocs.html
dataset/ETHPy150Open mozilla/addons-server/src/olympia/devhub/helpers.py/display_url--crossover with--dataset/ETHPy150Open guyskk/flask-restaction/flask_restaction/apiinfo.py/Gen.resdocs