Escaping filename in http response
Richard Brodie
R.Brodie at rl.ac.uk
Mon Mar 14 11:52:18 EST 2005
"Fuzzyman" <fuzzyman at gmail.com> wrote in message
news:1110817166.956220.179710 at l41g2000cwc.googlegroups.com...
> 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 package for MIME stuff like this.
More information about the Python-list
mailing list