UnicodeDecodeError 'utf-8' codec can't decode byte 0xc3 #33
-
I have the code as follows:
However, when running one particular query, I'm getting a "UnicodeDecodeError: 'utf-8' codec can't decode byte" exception. I see from the documentation page that encoding has defaulted to UTF-8. Any ideas on how to resolve this exception programmatically without making changes to the database? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Take a look at this documentation. You should ignore the comment about using UTF-8 as that is stale from the conversion from cx_Oracle. python-oracledb uses UTF-8 internally at all times now! |
Beta Was this translation helpful? Give feedback.
-
Also see the documentation Fetching Raw Data. |
Beta Was this translation helpful? Give feedback.
Take a look at this documentation. You should ignore the comment about using UTF-8 as that is stale from the conversion from cx_Oracle. python-oracledb uses UTF-8 internally at all times now!