title: UnicodeEncodeError: 'ascii' codec can't encode character when trying a HTTP POST in Python
body: <p>I'm trying to do a HTTP POST with a unicode string (u'\xe4\xf6\xfc') as a parameter in Python, but I receive the following error:</p>
  
  <p>UnicodeEncodeError: 'ascii' codec can't encode character</p>
  
  <p>This is to the code used to make the HTTP POST (with httplib2)</p>
  
  <pre><code> http = httplib2.Http()  
   userInfo = [('Name', u'\xe4\xf6\xfc')]
   data = urlencode(userInfo)
  
   resp, content = http.request(url, 'POST', body=data)
  </code></pre>
  
  <p>Any ideas on how to solve this?</p>