title: how to encode unicode characters in python?
body: <p>i am trying to encode unicode characters to a specific format that can be encoded and sent to a url using Python 2.</p>
  
  <pre><code>input = u"í"
  
  required_output = "%CC%81"
  
  import urllib
  
  print urllib.quote('í') = "%C3%AD"
  </code></pre>
  
  <p>Is there a way to encode as shown so i can get the required output?</p>