I am trying to read an RData file in Python with the package pyreadr
, but the default encoding is 'utf-8'. I need to change it into 'latin' because when I launch the following command
pyreadr.read_r('Input/myFile.RData')
I get the following error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 30: invalid start byte
The pyreadr.read_r
function does not have the encoding
input parameter, so I do not know how to fix it. Any help ?