当前位置:Gxlcms >
数据库问题 >
python3 UnicodeEncodeError错误,cx_oracle模块执行sql报错:UnicodeEncodeError: 'ascii' codec can't encode characters in position
python3 UnicodeEncodeError错误,cx_oracle模块执行sql报错:UnicodeEncodeError: 'ascii' codec can't encode characters in position
时间:2021-07-01 10:21:17
帮助过:16人阅读
os.environ[‘NLS_LANG‘] = ‘SIMPLIFIED CHINESE_CHINA.UTF8‘
如果是用的django,也可以将这段代码放进每个app的admin.py中,就会全局生效(未测试。按理说是可以的)
python3 UnicodeEncodeError错误,cx_oracle模块执行sql报错:UnicodeEncodeError: 'ascii' codec can't encode characters in position
标签:完美 class print 服务器 acl sql python china 生效