Re: Escaping filename in http response

2005-03-14 Thread Fuzzyman
Nice one - thanks. Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: Escaping filename in http response

2005-03-14 Thread Richard Brodie
"Fuzzyman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Which is the right function to escape the filename urllib.quote or > urllib.quote_plus ? Neither. Just drop quotes around it, after having sanitized it (assuming it's plain ASCII). Alternatively you could use the email pack