TA的每日心情 | 擦汗 3 小时前 |
---|
签到天数: 527 天 连续签到: 4 天 [LV.9]测试副司令
|
1测试积点
最近使用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
|
|