title: Python: got unicode with "\xf3" (ó). Want to convert to str ó. How?
body: <p>I'm using an API and in the response I get a unicode with \xf3. I want to cast it to a string but I get an error. Python 2.7, btw.</p>
  
  <p>Edit:</p>
  
  <p>To make it more clear:
  Let's say I have a dictiory with keys including strings with an 'ó'</p>
  
  <pre><code>a = {'camión': 3}
  </code></pre>
  
  <p>I'm trying to check if a unicode object with "\xf3" is a key of the dict. So, for example, I try using: </p>
  
  <pre><code>u"cami\xf3n" in a
  </code></pre>
  
  <p>That returns False. If I try to print that unicode object I get "camión", but I can't do a simple cast to get there (exception).</p>
  
  <p>So, I'm asking how to pass from u"cami\xf3n" (unicode) to "camión" (string) and be able to pass the condition before</p>