Quantcast
Viewing all articles
Browse latest Browse all 3

Answer by Jonathan for PyODBC outputting improper UTF-16

Adding CHARSET=UTF8 to the connection string worked and I now have the application up and running. For example:

change

cnxn = pyodbc.connect('DSN=localhost')

to

cnxn = pyodbc.connect('DSN=localhost;CHARSET=UTF8')

Thank you Thomas for pointing me in the right direction. Upgrading to a later version of PyODBC may also work.


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>