UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 8: character maps to <undefined>
Am seeing the above error in this simple SQL query:
df = pd.read_sql(query,connection)
I tried the query normally on SQL developer and it works perfectly fine. I am really stumped here as to how to specify encoding in a read_sql call.
Am using Python 3.4 and pandas version 0.14.1
the proper encoding for your database is iso-8859-1
according to oracle docs
so When you connect()
to your database, pass the charset='iso-8859-1'
or encoding='iso-8859-1'
try both.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With