Python中使用read_stata读取带有中文文本的dta文件,报错
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 32764: unexpected end of data
代码如下
且read_stata没有encoding参数可以输入
TypeError: read_stata() got an unexpected keyword argument 'encoding'
请问,如何解决以读取文件?