编码错误

报错:UnicodeDecodeError: 'gbk' codec can't decode byte 0xfe in position 32: illeg

解决:

import os
os.environ['NLS_LANG'] = 'SIMPLIFIED CHINESE_CHINA.UTF8'

 

posted @ 2020-05-23 22:44  半日闲1  阅读(168)  评论(0编辑  收藏  举报