title: How to properly url encode accents?
body: <p>I need to url encode foreign names, like "Misère".</p>
  
  <p>When I do:</p>
  
  <pre><code>urllib2.quote(name)
  </code></pre>
  
  <p>I get a the error:</p>
  
  <pre><code>File "/System/Library/Frameworks/Python.framework/Versions/
  2.5/lib/python2.5/urllib.py", line 1205, in quote
      res = map(safe_map.__getitem__, s)
  KeyError: u'\xe8'
  </code></pre>
  
  <p>What am I doing wrong?</p>