Python 2.7 connection to Oracle: loosing (Polish) characters
<p>I connect from Python 2.7 to Oracle data base.
When I use:</p>

<pre><code>cursor.execute("SELECT column1 FROM table").fetchall()]
</code></pre>

<p>I have got almost proper values for column1 because all Polish characters ("ÄÃ³ÄÅÅÅ¼ÄÅ") are converted to ascii one ("eoaslzcn"). Using another tool like SQLDeveloper and using the same select statement I get proper value.</p>

<p>Try setting the environment variable <code>NLS_LANG</code> to your database language string, something like</p>

<pre><code>os.environ['NLS_LANG'] = 'POLISH_POLAND.EE8MSWIN1250'
</code></pre>

python oracle python-2.7 character-encoding polish