django-pyodbc icon indicating copy to clipboard operation
django-pyodbc copied to clipboard

New database options: collation and client_encoding

Open tricoder42 opened this issue 12 years ago • 0 comments

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.

tricoder42 avatar Aug 20 '12 12:08 tricoder42