H
Harald Armin Massa
Hello,
I am looking for a method to convince cx_Oracle and oracle to encode
it's replies in UTF8.
For the moment I have to...
cn=cx_Oracle.connect("user","password", "database")
cs=cn.Cursor()
cs.execute("select column1, column2, column3 from table")
for row in cs.fetchall():
t=[]
for i in range(0,len(row)):
if hasattr(row,"encode"):
t.append(row.encode("utf8"))
else:
t.append(row)
print t
Guess I am to much accustomed to postgresql which just allows "set
client_encoding='utf8'...
Harald
I am looking for a method to convince cx_Oracle and oracle to encode
it's replies in UTF8.
For the moment I have to...
cn=cx_Oracle.connect("user","password", "database")
cs=cn.Cursor()
cs.execute("select column1, column2, column3 from table")
for row in cs.fetchall():
t=[]
for i in range(0,len(row)):
if hasattr(row,"encode"):
t.append(row.encode("utf8"))
else:
t.append(row)
print t
Guess I am to much accustomed to postgresql which just allows "set
client_encoding='utf8'...
Harald