使用 python3.4.4 连接 oracle 数据库报错,跪求大神
最近使用python3.4 的cx_Oracle 模块连接oracle数据库报错UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 82-83: invalid continuation byte 但是我换成python2.7 就正常运行,并且查询出了需要的数据,哪位同学遇到过这种问题呢,跪求啊,下面是我的代码和报错信息:import cx_Oracle
conn = cx_Oracle.connect('tdqesure','ife04','10.183.146.5:1521/ydsl')
cursor = conn.cursor()
cursor.execute("select * from pdd")
报错信息:
Traceback (most recent call last):
File "E:/pycharmSpace/taikang/oracle.py", line 3, in
conn = cx_Oracle.connect('tkinsure','ins185','10.137.146.5:1521/ursl')
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 82-83: invalid continuation byte
Process finished with exit code 1
编码错误 编码配置是不是不一致
页:
[1]