大家好,想用python读SAS档但会出现错误
1.
mydata_sas = pd.read_sas('aacompany98_106.sas7bdat',encoding='utf8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb2 in position 44:
invalid start byte
2.
mydata_sas = pd.read_sas('aacompany98_106.sas7bdat',encoding='big5')
UnicodeDecodeError: 'big5' codec can't decode byte 0x9c in position 2:
illegal multibyte sequence
3.mydata_sas = pd.read_sas('aacompany98_106.sas7bdat')
这个可以读出来,但中文字完全空白,猜测是编码问题,但没道理utf8
跟big5都不能阿~~~
请大家指点,谢谢