denisenkom / pytds

Python DBAPI driver for MSSQL using pure Python TDS (Tabular Data Stream) protocol implementation
MIT License
190 stars 52 forks source link

To resolve Chinese encoding errors. #164

Closed catchex closed 1 month ago

denisenkom commented 3 months ago

Can you add a test for this change?

denisenkom commented 1 month ago

Errors should not be ignored by default. It is probably failing due to invalid encoding specified when opening connection, or data stored with invalid encoding.

Instead you should specify correct encoding, or configure driver to not to decode non-unicode strings.