title: How to encode UTF8 filename for HTTP headers? (Python, Django)
body: <p>I have problem with HTTP headers, they're encoded in ASCII and I want to provided a view for downloading files that names can be non ASCII. </p>
  
  <pre><code>response['Content-Disposition'] = 'attachment; filename="%s"' % (vo.filename.encode("ASCII","replace"), )
  </code></pre>
  
  <p>I don't want to use static files serving for same issue with non ASCII file names but in this case there would be a problem with File system and it's file name encoding. (I don't know target os.)</p>
  
  <p>I've already tried urllib.quote(), but it raises KeyError exception.</p>
  
  <p>Possibly I'm doing something wrong but maybe it's impossible.</p>