ERROR: 'utf-8' codec can't decode byte 0x85 in position 0: invalid start byte · Issue #336 · oracle/python-oracledb (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@anthony-tuininga

Description

@anthony-tuininga

Discussed in #335

Originally posted by bnvader May 16, 2024
I am trying to use python oracledb to connect to Oracle Database that has encoding - ISO-8859-1.
I have a custom database type of type DB Table.
When I use thick client mode, I am able to directly use the DBObject.Attribute_Name to retrieve the attribute values from a row.
However this same step fails if I do not use thick mode.

I would like to have this working in thin mode as I want to eventually use this from a simple AWS Lambda function.

Has anyone been able to use thin mode to successfully decode non utf-8 encoded Oracle DB?
If so what is the secret?