title: How to print é as '%C3%A9' in Python 2.7
body: <p>I want to convert '<strong>é</strong>' to <strong>%C3%A9</strong> for URI request.</p>
  
  <p>My code is like this:</p>
  
  <pre><code>import urllib 
  actor = "Bonnie Erbé"
  </code></pre>
  
  <p>I know that I can manually covert it by </p>
  
  <pre><code>print urllib.quote(u"Bonnie Erbé".encode("utf-8")).
  </code></pre>
  
  <p>However, I want to use the variable <strong>actor</strong>.</p>
  
  <p>When I try </p>
  
  <pre><code>print urllib.quote(actor)
  </code></pre>
  
  <p>It prints <code>'Bonnie%20Erb%E9'</code> not <code>'Bonnie%20Erb%C3%A9'</code>.</p>
  
  <p>Thank you.</p>