I am executing python code with APache Nifi ExectureStreamCommand
I read a csv which I know the encoding is latin. So I am reading my file (file stream object) with :
pd.read_csv(sys.stdin, encoding='latin')
But pandas keep throwing to me this error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 172: invalid continuation byte
Thus it seems that pandas do not look at all at the given encoding parameter, and try utf-8 at any cost !
Any idea ? Thank you for you help