Hi,
I have connected one of our SQL Server database tables to Kafka via debezium connector.
But after using python code from package confluent-kafka
to consume produced message, I encounter below error:
$ UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 67: invalid start byte
I use msg.value().decode('utf-8')
to decode the message and tried various decoded options as I searched.
It doesn’t matter if I use confluent-kafka
or kafka-python
, I see the same error.
Is there any solution?