sktime库和Windows中文操作系统默认编码
今天在使用sktime库的时候遇到了解码失败的问题:
from sktime.datasets import load_airline
报错类似于:
{
"name": "UnicodeDecodeError",
"message": "'gbk' codec can't decode byte 0xb8 in position 4507: illegal multibyte sequence",
"stack": "---------------------------------------------------------------------------
UnicodeDecodeError Traceback (most recent call last)
Cell In[19], line 1
----> 1 from sktime.datasets import load_airline
显然这是个编码问题,我第一时间检查了VSCode中的默认编码,确保是utf-8
无误。
于是我怀疑大概率是程序编码出了问题,试了修改默认编码: