Skip to Content
0
Jan 29, 2021 at 12:35 PM

'utf-8' codec can't decode byte 0xef in position 2 Error

116 Views

I have followed all the process of step by step guide( https://blogs.sap.com/2020/06/09/connecting-python-with-sap-step-by-step-guide/ ) and able to establish connection to the sap server but while fetching the data from the sap i am getting an error and stuck in between

Error:-

result = conn.call('RFC_READ_TABLE', QUERY_TABLE = 'TCURR', OPTIONS = options, ROWSKIPS = rowskips, ROWCOUNT = ROWS_AT_A_TIME)
File "src\pyrfc\_pyrfc.pyx", line 423, in pyrfc._pyrfc.Connection.call
File "src\pyrfc\_pyrfc.pyx", line 2021, in pyrfc._pyrfc.wrapResult
File "src\pyrfc\_pyrfc.pyx", line 2100, in pyrfc._pyrfc.wrapVariable
File "src\pyrfc\_pyrfc.pyx", line 2070, in pyrfc._pyrfc.wrapTable
File "src\pyrfc\_pyrfc.pyx", line 2039, in pyrfc._pyrfc.wrapStructure
File "src\pyrfc\_pyrfc.pyx", line 2285, in pyrfc._pyrfc.wrapString
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xef in position 2: invalid continuation byte

How to resolve this error