How do I configure pyodbc to correctly accept strings from SQL Server using freeTDS and unixODBC?
问题 I can not get a valid string from an MSSQL server into python. I believe there is an encoding mismatch somewhere. I believe it is between the ODBC layer and python because I am able to get readable results in tsql and isql. What character encoding does pyodbc expect? What do I need to change in the chain to get this to work? Specific Example Here is a simplified python script as an example: #!/usr/bin/env python import pyodbc dsn = 'yourdb' user = 'import' password = 'get0lddata' database =