django-pyodbc
django-pyodbc copied to clipboard
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.