Open unformatt opened 8 years ago
Are you on Linux? If so, what version of the FreeTDS driver are you using? Python 2 or 3? Thanks.
Yes, I'm on Ubuntu 14. FreeTDS conf says $Id: freetds.conf,v 1.12 2007/12/25 06:02:36 jklowden Exp
and I'm using python 2.7
Sorry, I should have been more clear. When you run tsql -C
what version of FreeTDS does it tell you you are on? I'm guessing it'll most likely be 0.91 and 0.95.
The program 'tsql' is currently not installed. You can install it by typing:
sudo apt-get install freetds-bin
Do you have access to install it? We need to know what FreeTDS version you're running in order to know which TDS version to use in your configuration.
Also, which package are you using to Django's odbc connection? Can you provide a link? django-pyodbc-azure is the one that has worked best for me, but the configs are slightly different for each.
I'm looking to store Unicode, not just latin-1 which seems to be Microsoft's favorite charset.
my config
My field
I run migrations to create DB table and this SQL is executed:
CREATE TABLE XXX ([id] int IDENTITY (1, 1) NOT NULL PRIMARY KEY, [Label] nvarchar(250) NULL;
DB shows "Label" collation as
SQL_Latin1_General_CP1_CI_AS
So if I insert Unicode into "Label" column, it appears to be blank. And for constrast, If I change driver_charset and collation to "iso-8859-1", then I get this when inserting unicode into "Label" column: