def get_encoded_filename(self, filename_parm):
    '\n        Handle encoded filenames per RFC6266. See also:\n        https://tools.ietf.org/html/rfc2231#section-4\n        '
    encoded_filename = force_str(filename_parm['filename*'])
    try:
        (charset, lang, filename) = encoded_filename.split("'", 2)
        filename = parse.unquote(filename)
    except (ValueError, LookupError):
        filename = force_str(filename_parm['filename'])
    return filename
Handle encoded filenames per RFC6266. See also:
https://tools.ietf.org/html/rfc2231#section-4
def get_encoded_filename(self, filename_parm):
    '\n        Handle encoded filenames per RFC6266. See also:\n        https://tools.ietf.org/html/rfc2231#section-4\n        '
    encoded_filename = force_str(filename_parm['filename*'])
    try:
        (charset, lang, filename) = encoded_filename.split("'", 2)
        filename = parse.unquote(filename)
    except (ValueError, LookupError):
        filename = force_str(filename_parm['filename'])
    return filename