Closed GoogleCodeExporter closed 9 years ago
I assume you are not passing ansi=True to connect...
What db are you using? I'm guessing the issue is that Python is compiled with
4-byte Unicode characters but pyodbc is assuming 2-bytes. Can you run the
following:
import pyodbc
print 'python: %s' % sys.version
print 'pyodbc: %s %s' % (pyodbc.version, os.path.abspath(pyodbc.__file__))
print 'odbc: %s' % cnxn.getinfo(pyodbc.SQL_ODBC_VER)
print 'driver: %s %s' % (cnxn.getinfo(pyodbc.SQL_DRIVER_NAME), cnxn.getinfo(pyodbc.SQL_DRIVER_VER))
print ' supports ODBC version %s' % cnxn.getinfo(pyodbc.SQL_DRIVER_ODBC_VER)
print 'os: %s' % platform.system()
print 'unicode: Py_Unicode=%s SQLWCHAR=%s' % (pyodbc.UNICODE_SIZE, pyodbc.SQLWCHAR_SIZE)
Original comment by mkleehammer
on 17 Aug 2012 at 2:36
No response, so closing.
Original comment by mkleehammer
on 29 Sep 2012 at 4:48
Original issue reported on code.google.com by
zolti...@mail.nih.gov
on 24 May 2012 at 4:43