avidal/django-pyodbc — pull request #6 by elvard (2012-08-20 12:26:20+00:00)
Title: New database options: collation and client_encoding

Hi there,
I'm sending fixed commits.

First, I've fixed the collation option, since it was using the old-style DATABASE_OPTIONS settings.

Second, I had a problem with UTF-8. I got UnicodeDecodeError that some string can't be decoded to UTF-8. I wasn't able to configure FreeTDS/ODBC to use utf, so I rather added another option — client_encoding. Setting this option to 'latin-1' fixed my problem. I tried to look for simpler solution, but haven't found anything.