how to encode string with unicode characters python
<p>I have a sql statement: select 'ó' from dual;
after running fetchall for this statement I get the following string.'\xc2\xbf' in python. </p>

<p>How do I get the original text based on the string returned? any ideas?</p>

<p>thanks!</p>

<p>Update: It turns out that the fetchall might be converting the  'ó' to an inverted questionmark(the \xc2\xbf). any ideas why that is. I'm using </p>

<pre><code>#!/usr/bin/env python
# -*- coding: latin-1 -*-
??
</code></pre>
