cx_Oracle and UTF8

Harald Armin Massa haraldarminmassa at gmail.com
Mon Feb 27 03:57:52 EST 2006


Gerhard,

thanks, that

import os
os.environ["NLS_LANG"] = "German_Germany.UTF8"
import cx_Oracle
con = cx_Oracle.connect("me/secret at tns")

really helped. At least now the query returns something encoded
differently. I dared not to believe that there is no "direct encoding
change api" without touching the environment.

Now all that is left is to find out if Oracle indeed has the same
opinion what UTF8 should be like.

Thank you very much,

Harald




More information about the Python-list mailing list