cx_oracle 执行cur.execute(sql)提交数据出现 UnicodeEncodeError: 'ascii' codec can't encode character u'\u2122' in position 170

还是中文字符的问题,

解决方法见链接:http://www.oracle.com/technetwork/articles/tuininga-cx-oracle-084866.html

import os 

os.environ["NLS_LANG"] = ".AL32UTF8" 
posted @ 2016-08-18 15:17    阅读(934)  评论(0编辑  收藏  举报