@library.filter
def urlencode(txt):
    if isinstance(txt, unicode):
        txt = txt.encode('utf-8')
    return urllib.quote_plus(txt)
Url encode a path.
dataset/ETHPy150Open mozilla/pontoon/pontoon/base/templatetags/helpers.py/urlencode